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
Attempt to tab to button with disabled tooltip, or tooltip with empty content
Button does not receive focus due to disabled popover
Actual behavior
Disabled popover prevents target from being focused
Expected behavior
Just because a tooltip on a menu item is disabled (either through the prop, or through setting no content), does not mean the menu item itself is disabled and should not receive focus
Workaround to conditionally not wrap in a Tooltip when disabled, but being able to use the prop would be more ergonomic and would probably prevent some uncaught focus issues
See https://github.com/palantir/blueprint/blob/develop/packages/core/src/components/popover/popover.tsx#L371-L373
Environment
Code Sandbox
Link to a minimal repro: https://codesandbox.io/p/devbox/peaceful-shadow-yqcnf7
Steps to reproduce
Actual behavior
Expected behavior
Possible solution
unsure, at first I thought tabIndex was being clobbered but it does look like we take care to not clobber a defined tab index here: https://github.com/palantir/blueprint/blob/develop/packages/core/src/components/popover/popover.tsx#L426
I suspect this problem is not specific to MenuItem even though it is appearing there
The text was updated successfully, but these errors were encountered: