We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c57e4d commit 96e6357Copy full SHA for 96e6357
1 file changed
src/game/components/GameSettings.tsx
@@ -138,7 +138,17 @@ export const GameSettings = () => {
138
<StyledGameSettingsDialogWrapper
139
lightDismiss
140
open={open}
141
- onWaAfterHide={() => onOpen(false)}
+ onWaHide={e => {
142
+ if (
143
+ e.target === e.currentTarget &&
144
+ (e.currentTarget as HTMLElement)?.querySelector('wa-dialog[open]')
145
+ )
146
+ e.preventDefault();
147
+ }}
148
+ onWaAfterHide={e => {
149
+ if (e.target !== e.currentTarget) return;
150
+ onOpen(false);
151
152
label={'Game Settings'}
153
style={{
154
'--width': '920px',
0 commit comments