primereact
primereact copied to clipboard
Tooltip: when Tooltip used globally, the showOnDisabled does not work
Describe the bug
When using global tooltip with showOnDisabled=true, the tooltip does not appear on disabled component nor on enabled. When showOnDisabled=false is used it at least display tooltip on the enabled component.
Global tooltip is:
<Tooltip target=".tooltip" showOnDisabled={true} />
and the setup in component:
<Button className="tooltip" icon="pi pi-minus" data-pr-tooltip="Tooltip text disabled" disabled />
Reproducer
https://stackblitz.com/edit/vitejs-vite-fc2apdfr?file=src%2FApp.tsx
System Information
primereact: "^10.9.7"
Steps to reproduce the behavior
Just hover the buttons
Expected behavior
The tooltip will appear on hover