emilhe / dash-extensions

The dash-extensions package is a collection of utility functions, syntax extensions, and Dash components that aim to improve the Dash development experience
https://www.dash-extensions.com/
MIT License
409 stars 58 forks source link

Add support for useCapture in EventListener #255

Open dales opened 1 year ago

dales commented 1 year ago

I am trying to listen for an element scroll event, but AFAIK the event for the scroll does not bubble up and this causes the EventListener to not receive the event. From my understanding, if you add useCapture=true to the addEventListener this should solve the problem

addEventListener(type, listener, useCapture)

Can this property be exposed? (with default as false to avoid regressions)

emilhe commented 5 months ago

I have added support in the latest 1.0.11 release. Could you test if it works as intended?

dales commented 5 months ago

Unfortunately I am not working with dash anymore. I have moved teams and do not have access to that repo anymore

emilhe commented 5 months ago

Thanks for the response. Enjoy your new responsibilities 😊