We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e446d3c commit eed4fe4Copy full SHA for eed4fe4
1 file changed
packages/eui/src/components/flyout/flyout.tsx
@@ -437,7 +437,7 @@ export const EuiFlyout = forwardRef(
437
// because it snaps focus to the flyout wrapper, which steals it from subsequently focused elements.
438
findShards(true);
439
440
- const unsubscribe = focusTrapPubSub.subscribe(findShards);
+ const unsubscribe = focusTrapPubSub.subscribe(() => findShards());
441
return unsubscribe;
442
}, [findShards]);
443
0 commit comments