File tree Expand file tree Collapse file tree
src/components/markdown_editor/plugins/markdown_checkbox Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99import React , { FunctionComponent , useContext } from 'react' ;
1010import { EuiCheckbox } from '../../../form/checkbox' ;
1111import { EuiMarkdownContext } from '../../markdown_context' ;
12- import { htmlIdGenerator } from '../../../../services/accessibility' ;
12+ import { useGeneratedHtmlId } from '../../../../services/accessibility' ;
1313import { EuiMarkdownAstNodePosition } from '../../markdown_types' ;
1414import { CheckboxNodeDetails } from './types' ;
1515
@@ -21,7 +21,7 @@ export const CheckboxMarkdownRenderer: FunctionComponent<
2121 const { replaceNode } = useContext ( EuiMarkdownContext ) ;
2222 return (
2323 < EuiCheckbox
24- id = { htmlIdGenerator ( ) ( ) }
24+ id = { useGeneratedHtmlId ( ) }
2525 checked = { isChecked }
2626 label = { children }
2727 onChange = { ( ) => {
You can’t perform that action at this time.
0 commit comments