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

fix(overflow-menu): support Svelte 5 #2093

Merged
merged 2 commits into from
Jan 30, 2025
Merged

fix(overflow-menu): support Svelte 5 #2093

merged 2 commits into from
Jan 30, 2025

Conversation

metonym
Copy link
Collaborator

@metonym metonym commented Jan 29, 2025

Fixes #2092

More Svelte 5 weirdness with afterUpdate usage.

This fixes compatibility by moving the item "close" event out of the lifecycle hook (it doesn't make much sense to exist there in the first place). It moves it to the imperative update method in context.

Tested with Svelte 4 and Svelte 5.

@metonym metonym force-pushed the overflow-menu-close branch from e4bae24 to 9ab6b9b Compare January 30, 2025 03:29
@metonym metonym marked this pull request as ready for review January 30, 2025 03:29
@metonym metonym merged commit 306e099 into master Jan 30, 2025
3 checks passed
@metonym metonym deleted the overflow-menu-close branch January 30, 2025 16:56
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

Successfully merging this pull request may close these issues.

OverflowMenu breaks on closing [Svelte5]
1 participant