Skip to content

Commit 1e889d1

Browse files
committed
Use dismissible...
1 parent cee75ab commit 1e889d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/ui/lib/tooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ export class Tooltip<T extends TooltipTarget> extends React.Component<
387387
}
388388

389389
private onKeyDown = (event: KeyboardEvent) => {
390-
if (event.key === 'Escape' && this.state.show) {
390+
if (event.key === 'Escape' && this.state.show && this.props.dismissable) {
391391
event.preventDefault()
392392
this.beginHideTooltip()
393393
}

0 commit comments

Comments
 (0)