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

refactor menu #1056

Merged
merged 4 commits into from
Apr 15, 2024
Merged

refactor menu #1056

merged 4 commits into from
Apr 15, 2024

Conversation

anatolzak
Copy link
Contributor

@anatolzak anatolzak commented Mar 4, 2024

Menu Refactor:

  • setting rootActiveTrigger in trigger action (when trigger mounts) instead of in safeOnMount and in effect([rootOpen, preventScroll])
  • setting subActiveTrigger in subTrigger action (when subTrigger mounts) instead of in safeOnMount and in subTrigger click handler and in subTrigger keydown handler
  • cleaned up effect([rootOpen]) and using early return for cleaner code

Copy link

changeset-bot bot commented Mar 4, 2024

🦋 Changeset detected

Latest commit: ee3c9e2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@melt-ui/svelte Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Apr 15, 2024

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
melt-ui ✅ Ready (View Log) Visit Preview 0132de7

@TGlide TGlide merged commit 5bb9601 into melt-ui:develop Apr 15, 2024
5 of 6 checks passed
@anatolzak anatolzak deleted the refactor/menu branch April 15, 2024 11:03
lolcabanon pushed a commit to lolcabanon/melt-ui that referenced this pull request Apr 20, 2024
Co-authored-by: Thomas G. Lopes <26071571 [email protected]>
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.

None yet

2 participants