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

Allow to remove the events #244

Closed
jcubic opened this issue Oct 21, 2021 · 5 comments
Closed

Allow to remove the events #244

jcubic opened this issue Oct 21, 2021 · 5 comments

Comments

@jcubic
Copy link

jcubic commented Oct 21, 2021

This is like a major flaw in this library I don't see a way to remove the event that was added using shinyjs.

Is there any way to remove everything that is attached to an element? Including mutation observer helpers.

@daattali
Copy link
Owner

Can you please be more specific, shiny js has a lot of functionality, what "event" are you wanting to remove?

@jcubic
Copy link
Author

jcubic commented Oct 21, 2021

I mean every DOM event is the same you have a way to add a click event, but no way to remove it.

At least it's not documented how to remove the events. I'm not sure if there are other events besides DOM events.

@daattali
Copy link
Owner

That's a valid concern. I'll think about how to best add a mechanism to remove events.

@daattali
Copy link
Owner

daattali commented Dec 1, 2021

I added a function removeEvent

@jcubic
Copy link
Author

jcubic commented Dec 1, 2021

Awesome, thanks.

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

No branches or pull requests

2 participants