Skip to content

Conversation

RobinMalfait
Copy link
Member

No description provided.

- We removed the `toggleMenu` since we only used it in a single spot,
  and had to do some side effect logic (focus & event.preventDefault).
  Wanted to make this consistent between React and Vue.
- If, in the "outside click" logic we detect that we clicked on the
  button, we also ignore it.
- If, we click on the button we will toggle the menu.

Fixes: #18
@vercel
Copy link

vercel bot commented Sep 28, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

headlessui-react – ./packages/@headlessui-react

🔍 Inspect: https://vercel.com/tailwindlabs/headlessui-react/at46kh9yo
✅ Preview: https://headlessui-react-git-fix-outside-click.tailwindlabs.vercel.app

headlessui-vue – ./packages/@headlessui-vue

🔍 Inspect: https://vercel.com/tailwindlabs/headlessui-vue/qairqhzav
✅ Preview: https://headlessui-vue-git-fix-outside-click.tailwindlabs.vercel.app

@RobinMalfait RobinMalfait merged commit 93e8b8f into develop Sep 28, 2020
@RobinMalfait RobinMalfait deleted the fix-outside-click branch September 28, 2020 13:52
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.

1 participant