daattali / shinyjs

💡 Easily improve the user experience of your Shiny apps in seconds

Home Page:https://deanattali.com/shinyjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow to remove the events

jcubic opened this issue · comments

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.

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

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.

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

I added a function removeEvent

Awesome, thanks.