-
Notifications
You must be signed in to change notification settings - Fork 975
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
detailsToggle fast follow #4659
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me! Able to hover over the items to show the details as well as clicking them. Clicking them fast does not seem to cause any odd behavior!
awesome! thank you sooo much @JKarlavige ! |
For sure, nice work on the fix!! |
adding this slack convo for more context and explaination |
this pr updates the code i the following sections because the ux was a little weird if you immediately clicked on the toggle after it expanded:
handleToggleClick
flips the current open/close state (!current), and ensures hover is always active.handleMouseEnter
checks if the content is already open (isOn) before enabling hoverhandleMouseLeave
enables so that the content closes only if it's not already open due to a click.