Skip to content

Replace inner html #166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rspencer01
Copy link
Collaborator

We were seeing an issue where nesting multiple Tab blocks inside each other would cause a refresh of a parent element. By replacing the parent div using outerHTML this is resolved.

When we render a provider without calling it, it places a small div in
the document that loads the actual contents from `self.url` when it is
revealed. Previously we were replacing the innerHTML (default) which
left `hx-get` as a property on a parent div, which could then be
inherited by its children.

What we should be doing is replacing the entire small div with the
contents of the block.
This doesn't really matter as far as I can tell, but it is neater to
have the `<head>` before the contents.
@coveralls
Copy link

Coverage Status

coverage: 88.654%. remained the same
when pulling 92f37b2 on rspencer01:replace_inner_html
into cc0dd9a on man-group:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants