Stop propogation of escape event to prevent going back from the reader

This commit is contained in:
Jackson Harper
2023-10-04 16:49:21 +08:00
parent 34f48e255f
commit fbae77d3c6

View File

@ -186,6 +186,7 @@ export function SetLabelsModal(props: SetLabelsModalProps): JSX.Element {
onEscapeKeyDown={(event) => {
props.onOpenChange(false)
event.preventDefault()
event.stopPropagation()
}}
>
<VStack distribution="start" css={{ height: '100%' }}>