Skip to content

Commit 8e1df4f

Browse files
committed
Don't close settings panel on focusout
1 parent 9aa1fdb commit 8e1df4f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/src/app/(private)/experiments/infra/SettingsPanel.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ export function SettingsPanel<Settings>(props: SettingsPanel.Props<Settings>) {
2525
const [open, setOpen] = React.useState(false);
2626
const handleOpenChange = React.useCallback(
2727
(nextOpen: boolean, event: Event | undefined, reason: string | undefined) => {
28-
console.log(nextOpen, reason);
29-
if (!nextOpen && reason === 'outside-press') {
28+
if (!nextOpen && (reason === 'outside-press' || reason === 'focus-out')) {
3029
return;
3130
}
3231

0 commit comments

Comments
 (0)