You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 4, 2020. It is now read-only.
feat(Popup): added on prop for triggering the popup on click, hover or focus (#622)
* -added on prop in the Popup for allowing the user to change the trigger event of the popup on click or hover
-added usage examples
* -updated changelog
* -wip: adding focus, click, hover combinations for the on prop
* -fixed some issues
-copied handlers on the primitive content element
* -added escape key handler on the trigger
-hover should by default add the focus handler as well
* -fixed focus handlers
-fixed examples imports
* -fixed focus
* -added focus usage example
* -fixed on prop type
-hover on blur should close the popup
-rearranged the examples for the on prop
* -handle timeout for closing only if mouseLeaveDelay is greater then 0
* -adding comments on the handlers created
-refactoring on the blur conditions
* -rearranged usage example and added example using the trap focus behavior
* -improved typing for the on prop in the Popup
* -removed expressions for strings in the examples
* -replaced double quotes with single quotes
* -added aria-label on the popup examples
* -reverted condition for not adding timeout if the mouse delay is 0
* -removed alert in the Popup examples
* -refactoring the timeout handling and added clear logic
* -small refactorings
* docs: simplify popup usage examples
* -fix focus + click opening
* -fixed changelog after merging master
0 commit comments