Skip to content

Commit b7c8850

Browse files
Aryan3902melloware
authored andcommitted
Prettier Fix
1 parent 89e76e2 commit b7c8850

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

components/lib/focustrap/FocusTrap.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff 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');

0 commit comments

Comments
 (0)