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

`EventListener` support for the `resize` event?

hannahker opened this issue · comments

I'd like to capture the window resize event using the EventListener component to help with creating a responsive app layout. To do this I've added the EventListener to my layout:

EventListener(id="event-listener", events=[{"event": "resize", "props": []}]) 

This does not trigger any callbacks, which I'm assuming is because this event does not bubble, or because it's not possible to capture events from the Window object? Is there a possible workaround here?

Potentially related to #255

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