Component cleanup
This commit is contained in:
@@ -78,5 +78,5 @@ export function useCreateModalA11y(
|
||||
document.removeEventListener("keydown", handleTab);
|
||||
previousActiveElementRef.current?.focus();
|
||||
};
|
||||
}, [isOpen]);
|
||||
}, [dialogRef, isOpen]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user