Skip to content
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

drab-click events not triggered with set_prop outerHTML #80

Closed
bougueil opened this issue Feb 14, 2018 · 1 comment
Closed

drab-click events not triggered with set_prop outerHTML #80

bougueil opened this issue Feb 14, 2018 · 1 comment
Assignees
Labels

Comments

@bougueil
Copy link

I wish to add dynamically buttons like

set_prop socket, selector, outerHTML: "<button drab='click:button_clicked'>clickme</button>"

however button_clicked is not called.

@grych grych added the bug label Feb 14, 2018
@grych
Copy link
Owner

grych commented Feb 14, 2018

Good find, thanks!
It is a bug, outerHTML is not on the list of updates, which should re-read drab's events. Until it is solved, please use innerHTML or the parent element.

@grych grych self-assigned this Feb 15, 2018
@grych grych closed this as completed in f01c919 Feb 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants