-
Notifications
You must be signed in to change notification settings - Fork 74
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
up.reload does not seem to respect mainTarget for layers #333
Comments
This is really a limitation of the Things you could do instead:
|
Thanks for clarifying; I assumed that was what's going on. I had overlooked the possibility of not specifying a target for However, I'm wondering if reloading If you don't feel that makes sense, feel free to close the issue. 👍 |
In Unpoly 3+ a |
Bug description
When reloading the current (non-root) layer, and when when the response contains another element with the same class as the
<main>
element before<main>
in the DOM, that element will be rendered instead of the main target.Reproduction project
https://glitch.com/edit/#!/noon-funky-rhodium
Steps to reproduce the behavior:
Expected behavior
The
<main>
element inside the layer should have been replaced with the<main>
element from the reload response.Browser version
Additional context
up-id
to the<main>
element resolves the issue.The text was updated successfully, but these errors were encountered: