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 memory leak in Popover component #2430

Merged
merged 2 commits into from Apr 13, 2023
Merged

Conversation

RobinMalfait
Copy link
Collaborator

This PR fixes a memory leak in the Popover component for the Vue version.

The handleFocus was defined in the render function instead of the setup function. The useTabDirection call was also used inside the render function which resulted in a lot of event handlers being creating every single render.

Moving it to the setup function itself solves this issue.

@vercel
Copy link

vercel bot commented Apr 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
headlessui-react ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 13, 2023 10:13am
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 13, 2023 10:13am

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

1 participant