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

Home Page:https://www.dash-extensions.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for useCapture in EventListener

dales opened this issue · comments

commented

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)

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

commented

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

Thanks for the response. Enjoy your new responsibilities 😊