Tooltip: Both 'focus' and 'hover' events cannot be set at the same time #3241
Labels
Type: New Feature
Issue contains a new feature or new component request
Milestone
Describe the feature you would like to see added
Trying to migrate from reactstrap UncontrolledTooltip, the main impediment is about the triggering event which, by default, is supporting both focus and hover.
If we could get PrimeReact tooltip to support the two events with the same component instance, that would be great: users with a mouse could get extra info quickly, as well as keyboard-only ones who would see the tooltip as soon as the target element focus is focused.
As for the API, the event prop could accept an array of string or a new constant like 'both' or even a parseable array like 'focus,hover' (and vice-versa)?
Is your feature request related to a problem?
That's unfortunate that we would have to double the number of tooltips to get one support hover event and the other one focus event.
Describe the solution you'd like
No response
Describe alternatives you have considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: