Skip to content

Commit

Permalink
[Discover] Fix console warning for invalid DOM property (elastic#204417)
Browse files Browse the repository at this point in the history
Fixes one of the errors described in elastic#202287 — namely a console warning
due to invalid DOM property.
  • Loading branch information
acstll authored Dec 17, 2024
1 parent 348ea81 commit 59826cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const useFlyoutA11y = ({ isXlScreen }: { isXlScreen: boolean }) => {
a11yProps: {
ref: setFlyoutEl,
role: isXlScreen ? 'dialog' : undefined,
tabindex: isXlScreen ? 0 : undefined,
tabIndex: isXlScreen ? 0 : undefined,
'aria-describedby': isXlScreen ? descriptionId : undefined,
'data-no-focus-lock': isXlScreen || undefined,
},
Expand Down

0 comments on commit 59826cc

Please sign in to comment.