-
Notifications
You must be signed in to change notification settings - Fork 982
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 hover - `handleMouseLeave` enables so that the content closes only if it's not already open due to a click.
- Loading branch information
Showing
2 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters