Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EventListener support for the resize event? #282

Open
hannahker opened this issue Aug 25, 2023 · 2 comments
Open

EventListener support for the resize event? #282

hannahker opened this issue Aug 25, 2023 · 2 comments

Comments

@hannahker
Copy link

hannahker commented Aug 25, 2023

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?

@hannahker
Copy link
Author

Potentially related to #255

@emilhe
Copy link
Owner

emilhe commented Feb 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants