Skip to content

Commit 4385804

Browse files
committed
[Fix] EuiMarkdownEditor checkboxes generated IDs
1 parent 37f9001 commit 4385804

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/components/markdown_editor/plugins/markdown_checkbox

src/components/markdown_editor/plugins/markdown_checkbox/renderer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import React, { FunctionComponent, useContext } from 'react';
1010
import { EuiCheckbox } from '../../../form/checkbox';
1111
import { EuiMarkdownContext } from '../../markdown_context';
12-
import { htmlIdGenerator } from '../../../../services/accessibility';
12+
import { useGeneratedHtmlId } from '../../../../services/accessibility';
1313
import { EuiMarkdownAstNodePosition } from '../../markdown_types';
1414
import { 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={() => {

0 commit comments

Comments
 (0)