pressure icon indicating copy to clipboard operation
pressure copied to clipboard

How do you remove a Pressure listener from an element?

Open garrettmaring opened this issue 5 years ago • 4 comments

garrettmaring avatar Jan 18 '19 20:01 garrettmaring

Currently we don't support a way of doing this out of the box. For this to work we would need to add something like an unbindEvents() which would use the removeEventListener method which would allow you to call in some way to unbind the binded events.

Open to pull requests on this, will take a look when I get a chance. Not sure if there is a way you can do it right now without the implementation.

stuyam avatar Jan 25 '19 16:01 stuyam

Currently we don't support a way of doing this out of the box. For this to work we would need to add something like an unbindEvents() which would use the removeEventListener method which would allow you to call in some way to unbind the binded events.

Open to pull requests on this, will take a look when I get a chance. Not sure if there is a way you can do it right now without the implementation.

Is all the state etc sync'd on the dom node?

darkyen avatar Jan 27 '19 17:01 darkyen

The only thing on the dom node will be the added event listeners. What did you have in mind @darkyen?

stuyam avatar Jan 28 '19 16:01 stuyam

Any hacks for doing this?

Pranav2612000 avatar May 03 '21 16:05 Pranav2612000