File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
packages/react-core/src/components/Dropdown/examples Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ propComponents:
1616 ]
1717---
1818
19- import { useState } from 'react';
19+ import { useState, useRef } from 'react';
2020import EllipsisVIcon from '@patternfly/react-icons /dist/esm/icons/ellipsis-v-icon';
2121
2222## Examples
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ import {
77 Divider ,
88 MenuToggleElement
99} from '@patternfly/react-core' ;
10- import { useState } from 'react' ;
10+ import { useRef , useState } from 'react' ;
1111
1212export const DropdownSplitButtonText : React . FunctionComponent = ( ) => {
1313 const [ isOpen , setIsOpen ] = useState ( false ) ;
14- const toggleRef = React . useRef < MenuToggleElement > ( null ) ;
14+ const toggleRef = useRef < MenuToggleElement > ( null ) ;
1515
1616 const onFocus = ( ) => {
1717 if ( ! toggleRef . current ) {
You can’t perform that action at this time.
0 commit comments