We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9aa1fdb commit 8e1df4fCopy full SHA for 8e1df4f
docs/src/app/(private)/experiments/infra/SettingsPanel.tsx
@@ -25,8 +25,7 @@ export function SettingsPanel<Settings>(props: SettingsPanel.Props<Settings>) {
25
const [open, setOpen] = React.useState(false);
26
const handleOpenChange = React.useCallback(
27
(nextOpen: boolean, event: Event | undefined, reason: string | undefined) => {
28
- console.log(nextOpen, reason);
29
- if (!nextOpen && reason === 'outside-press') {
+ if (!nextOpen && (reason === 'outside-press' || reason === 'focus-out')) {
30
return;
31
}
32
0 commit comments