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

trigger "outside click" behaviour on mousedown #212

Merged
merged 1 commit into from
Jan 29, 2021

Conversation

RobinMalfait
Copy link
Member

Fixes: #95

@vercel
Copy link

vercel bot commented Jan 29, 2021

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-vue – ./packages/@headlessui-vue

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

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

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

@wengtytt
Copy link

Is there an option to disable "outside click" behaviour? For example, I'd like to keep the dialog opened when click outside. It would be great if we can have the condition inside the useWindowEvent function.

@paulwongx
Copy link

Further to @wengtytt's request, is this something that's possible to do? It seems quite important as a basic feature imo.

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.

Feature: add option to close dropdown on mousedown outside instead of full click
3 participants