diff --git a/packages/block-library/src/post-comments/edit.js b/packages/block-library/src/post-comments/edit.js index 9ed717a2865ac..b8464c062c2e1 100644 --- a/packages/block-library/src/post-comments/edit.js +++ b/packages/block-library/src/post-comments/edit.js @@ -16,7 +16,10 @@ import { import { __, sprintf } from '@wordpress/i18n'; import { useSelect } from '@wordpress/data'; import { useEntityProp, store as coreStore } from '@wordpress/core-data'; -import { __experimentalUseDisabled as useDisabled } from '@wordpress/compose'; +import { + __experimentalUseDisabled as useDisabled, + useInstanceId, +} from '@wordpress/compose'; export default function PostCommentsEdit( { attributes: { textAlign }, @@ -85,6 +88,8 @@ export default function PostCommentsEdit( { const disabledRef = useDisabled(); + const textareaId = useInstanceId( PostCommentsEdit ); + return ( <> @@ -208,11 +213,14 @@ export default function PostCommentsEdit( {

-