Skip to content

Commit 784c2c1

Browse files
committed
fix: dialog trigger disable focus
1 parent 74030a8 commit 784c2c1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/overlays/Dialog/DialogTrigger.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -319,11 +319,11 @@ function DialogTriggerBase(props) {
319319
};
320320

321321
// Restore focus manually when the dialog closes
322-
useEffect(() => {
323-
if (!state.isOpen && !isFirstRender) {
324-
ref.current?.focus();
325-
}
326-
}, [state.isOpen, ref.current]);
322+
// useEffect(() => {
323+
// if (!state.isOpen && !isFirstRender) {
324+
// ref.current?.focus();
325+
// }
326+
// }, [state.isOpen, ref.current]);
327327

328328
return (
329329
<Fragment>

0 commit comments

Comments
 (0)