toolbar: override aria-haspopup

The Tooltip2 component incorrectly sets this attribute which should
not be set for tooltips.
This commit is contained in:
David Lechner
2022-05-13 14:38:12 -05:00
parent a0f8b9a0ca
commit cd88789be7
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -96,6 +96,8 @@ const ActionButton: React.VoidFunctionComponent<ActionButtonProps> = ({
aria-label={label}
elementRef={tooltipTargetRef as IRef<HTMLButtonElement>}
{...tooltipTargetProps}
// https://github.com/palantir/blueprint/pull/5300
aria-haspopup={undefined}
intent={Intent.PRIMARY}
onClick={onAction}
disabled={enabled === false}
+2
View File
@@ -111,6 +111,8 @@ const OpenFileButton: React.VoidFunctionComponent<OpenFileButtonProps> = ({
refKey: 'elementRef',
elementRef: tooltipTargetRef as IRef<HTMLButtonElement>,
...tooltipTargetProps,
// https://github.com/palantir/blueprint/pull/5300
'aria-haspopup': undefined,
intent: Intent.PRIMARY,
disabled: enabled === false,
style: enabled === false ? pointerEventsNone : undefined,