File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -89,17 +89,7 @@ export const FocusTrap = React.memo(
8989 const { tabIndex = 0 } = props || { } ;
9090
9191 const createFocusableElement = ( inRef , onFocus , section ) => {
92- return (
93- < span
94- ref = { inRef }
95- className = { 'p-hidden-accessible p-hidden-focusable' }
96- tabIndex = { tabIndex }
97- data-p-hidden-accessible = { true }
98- data-p-hidden-focusable = { true }
99- onFocus = { onFocus }
100- data-pc-section = { section }
101- />
102- ) ;
92+ return < span ref = { inRef } className = { 'p-hidden-accessible p-hidden-focusable' } tabIndex = { tabIndex } data-p-hidden-accessible = { true } data-p-hidden-focusable = { true } onFocus = { onFocus } data-pc-section = { section } /> ;
10393 } ;
10494
10595 const firstFocusableElement = createFocusableElement ( firstFocusableElementRef , onFirstHiddenElementFocus , 'firstfocusableelement' ) ;
You can’t perform that action at this time.
0 commit comments