Skip to content

Commit

Permalink
Don't override role attr on rich text component
Browse files Browse the repository at this point in the history
  • Loading branch information
Vicente Canales committed Jan 19, 2023
1 parent 875628f commit 93317de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-editor/src/components/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ function RichTextWrapper(
}

const TagName = tagName;

return (
<>
{ isSelected && (
Expand Down Expand Up @@ -389,11 +390,11 @@ function RichTextWrapper(
) }
<TagName
// Overridable props.
role="textbox"
aria-multiline={ ! disableLineBreaks }
aria-label={ placeholder }
{ ...props }
{ ...autocompleteProps }
role="textbox"
ref={ useMergeRefs( [
forwardedRef,
autocompleteProps.ref,
Expand Down

0 comments on commit 93317de

Please sign in to comment.