Skip to content

Commit

Permalink
FIX[widget]: Do not propagate onKeyUp/onKeyDown events from PromptDia…
Browse files Browse the repository at this point in the history
…log (#375)

Important GitHub thread with details about the issue:
facebook/react#11387
  • Loading branch information
sienkiewiczkm committed Apr 19, 2023
1 parent a37f83d commit 5592a11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/widget/src/components/uiKit/dialog/dialog.tsx
Expand Up @@ -88,6 +88,8 @@ const Dialog: React.FC<DialogProps> = (properties) => (
$width={properties.$width}
$height={properties.$height}
$maxHeight={properties.$maxHeight}
onKeyDown={(e) => e.stopPropagation()}
onKeyUp={(e) => e.stopPropagation()}
>
{properties.title !== null && (
<DialogHeader>
Expand Down

0 comments on commit 5592a11

Please sign in to comment.