Skip to content

Commit

Permalink
Don’t set a focus fallback for Dialog’s in demo mode
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed May 10, 2024
1 parent 031b39d commit d123228
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ function DialogFn<TTag extends ElementType = typeof DEFAULT_DIALOG_TAG>(
<PortalWrapper>
<FocusTrap
initialFocus={initialFocus}
initialFocusFallback={internalDialogRef}
initialFocusFallback={__demoMode ? undefined : internalDialogRef}
containers={resolveRootContainers}
features={focusTrapFeatures}
>
Expand Down

0 comments on commit d123228

Please sign in to comment.