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

Disable scroll when list item hovered #1058

Closed

Conversation

yuta-ike
Copy link
Contributor

@yuta-ike yuta-ike commented Jan 21, 2022

close #769

This PR will disable scroll when list item is hovered.
I added new state named activeOptionTrigger, that represents what triggerred activeOption change. It has two value, auto and mouse. mouse is set when user hovers. auto is set in the other cases, such as opening list box and first focussed.
I disabled to call scrollIntoView methods when activeOptionTrigger == mouse.

@vercel
Copy link

vercel bot commented Jan 21, 2022

@yuta-ike is attempting to deploy a commit to the Tailwind Labs Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Jan 21, 2022

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/playground-react

🔍 Inspect: https://vercel.com/tailwindlabs/headlessui-react/2xAhqj8CnxYUDuz8ncKHfW5FteDa
✅ Preview: Failed

@RobinMalfait
Copy link
Member

Hey! Thank you for your PR!
Much appreciated! 🙏

I rebased and continued on your initial work in #1161 therefore closed this one.

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.

[Bug]: Listbox Hover Focus Shouldn't Cause Scroll
2 participants