-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
HTML + Binding #278
Labels
bug
Something isn't working
Comments
Hi @vi4m, thanks for reporting this, it looks like a bug to me. I'm investigating it now. |
MaxDesiatov
added a commit
that referenced
this issue
Sep 23, 2020
Property assignment does not update SVG elements. We may want to use properties instead of `setAttribute` in the future for optimizations. For now I think that `setAttribute` works in all cases, including SVG, and seems safer to me. Resolves #278. * Use setAttribute, not properties to fix SVG update * Add HTMLAttribute to cleanly apply DOM updates * Add doc comment to HTMLAttribute * Update Sources/TokamakStaticHTML/Views/HTML.swift Co-authored-by: Jed Fox <git@jedfox.com> * Use static func property in TokamakDOM/TextField.swift * Make `static func property` public * Declare `static let value` on `HTMLAttribute` Co-authored-by: Jed Fox <git@jedfox.com>
This is fixed in the |
Thanks for a quick fix! Working as expected now 👍 |
That's great! Feel free to reopen or to create a new issue if you have any problems/questions 🙂 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've tried to build
HTML
which will react to external events from external components(such as Button click), through "Binding" wrapper.It does render with intial value, but it doesn't re-render after sending new value.
Questions:
The text was updated successfully, but these errors were encountered: