File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
packages/@headlessui-react Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
- - Nothing yet!
10
+ ### Fixed
11
+
12
+ - [ internal] Don’t set a focus fallback for Dialog’s in demo mode ([ #3194 ] ( https://github.com/tailwindlabs/headlessui/pull/3194 ) )
11
13
12
14
## [ 2.0.3] - 2024-05-07
13
15
Original file line number Diff line number Diff line change @@ -393,7 +393,7 @@ function DialogFn<TTag extends ElementType = typeof DEFAULT_DIALOG_TAG>(
393
393
< PortalWrapper >
394
394
< FocusTrap
395
395
initialFocus = { initialFocus }
396
- initialFocusFallback = { internalDialogRef }
396
+ initialFocusFallback = { __demoMode ? undefined : internalDialogRef }
397
397
containers = { resolveRootContainers }
398
398
features = { focusTrapFeatures }
399
399
>
You can’t perform that action at this time.
0 commit comments