Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Fix tab accessibility with popup modal

Neeraj Walia7d6f10d77518
diff --git a/packages/ui/src/components/Toggle/Toggle.tsx b/packages/ui/src/components/Toggle/Toggle.tsx
index 9ebbfbd6fff..3b9ad145f14 100644
--- a/packages/ui/src/components/Toggle/Toggle.tsx
+++ b/packages/ui/src/components/Toggle/Toggle.tsx
@@ -63,7 +63,9 @@ function Toggle({
}, [])
function handleBlurEvent(e: React.FocusEvent<HTMLButtonElement>) {
- if (handleBlur) handleBlur(e)
+ setTimeout(() => {
+ if (handleBlur) handleBlur(e)
+ }, 100)
if (onBlur) onBlur(e)
}