-
Notifications
You must be signed in to change notification settings - Fork 4
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
Isn't reusable #2
Comments
You need to close your tag the same as you do with a script tag. |
I guess it's using wire with id that makes it unreusable. |
This closing of tags is part of the browser not hyperHTML. This is an example You can see that custom tags defined in the page must have a matching closing tag or it will just stay open. BUT you can have a self closing custom tag inside you render because hyperHTML v2.5 will now automatically add the matching closing tag |
The issue is in fact about when you use hyperhtml.wire(obj, "ID")``, and then try to render a component that holds this wire id twice making it fail, which in my case like the whole app is based on. I'll close this as this is upstream without opening one in hyperhtml. |
https://jsfiddle.net/fwLbqmsj/
Using your own example, i've appended another element and the second instance won't run.
The text was updated successfully, but these errors were encountered: