Skip to content

Commit

Permalink
Block Bindings: Prioritize existing placeholder over bindingsPlacehol…
Browse files Browse the repository at this point in the history
…der (#65154)

Co-authored-by: zaguiini <zaguiini@git.wordpress.org>
Co-authored-by: gziolo <gziolo@git.wordpress.org>
  • Loading branch information
3 people authored Sep 10, 2024
1 parent 23e8baf commit 8b4ca34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-editor/src/components/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ export function RichTextWrapper(
selectionStart,
selectionEnd,
onSelectionChange,
placeholder: bindingsPlaceholder || placeholder,
placeholder: placeholder || bindingsPlaceholder,
__unstableIsSelected: isSelected,
__unstableDisableFormats: disableFormats,
preserveWhiteSpace,
Expand Down Expand Up @@ -406,7 +406,7 @@ export function RichTextWrapper(
aria-readonly={ shouldDisableEditing }
{ ...props }
aria-label={
bindingsPlaceholder || props[ 'aria-label' ] || placeholder
props[ 'aria-label' ] || placeholder || bindingsPlaceholder
}
{ ...autocompleteProps }
ref={ useMergeRefs( [
Expand Down

0 comments on commit 8b4ca34

Please sign in to comment.