Skip to content

Commit 5d4776d

Browse files
committed
Suppress duplicate inline shortcut chip when tooltip is set
1 parent 284639a commit 5d4776d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

apps/webapp/app/components/primitives/Buttons.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,11 @@ export const Button = forwardRef<HTMLButtonElement, ButtonPropsType>(
353353
form={props.form}
354354
autoFocus={autoFocus}
355355
>
356-
<ButtonContent {...props} tooltip={undefined} />
356+
<ButtonContent
357+
{...props}
358+
tooltip={undefined}
359+
hideShortcutKey={props.tooltip ? true : props.hideShortcutKey}
360+
/>
357361
</button>
358362
);
359363

0 commit comments

Comments
 (0)