From 964b86176149e371f2e57d5141eb675ec187035e Mon Sep 17 00:00:00 2001 From: Carlos Bravo <37012961+cbravobernal@users.noreply.github.com> Date: Tue, 10 Sep 2024 17:57:45 +0200 Subject: [PATCH] Fix e2e --- packages/block-editor/src/components/rich-text/index.js | 4 ++-- packages/editor/src/bindings/post-meta.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/block-editor/src/components/rich-text/index.js b/packages/block-editor/src/components/rich-text/index.js index ed53270b679f7..732b8dbf2c089 100644 --- a/packages/block-editor/src/components/rich-text/index.js +++ b/packages/block-editor/src/components/rich-text/index.js @@ -334,7 +334,7 @@ export function RichTextWrapper( selectionStart, selectionEnd, onSelectionChange, - placeholder: placeholder || bindingsPlaceholder, + placeholder: bindingsPlaceholder || placeholder, __unstableIsSelected: isSelected, __unstableDisableFormats: disableFormats, preserveWhiteSpace, @@ -406,7 +406,7 @@ export function RichTextWrapper( aria-readonly={ shouldDisableEditing } { ...props } aria-label={ - props[ 'aria-label' ] || placeholder || bindingsPlaceholder + bindingsPlaceholder || props[ 'aria-label' ] || placeholder } { ...autocompleteProps } ref={ useMergeRefs( [ diff --git a/packages/editor/src/bindings/post-meta.js b/packages/editor/src/bindings/post-meta.js index 3cd8879de13f0..6dc0af8631e02 100644 --- a/packages/editor/src/bindings/post-meta.js +++ b/packages/editor/src/bindings/post-meta.js @@ -71,7 +71,7 @@ export default { for ( const [ attributeName, source ] of Object.entries( bindings ) ) { // Use the key if the value is not set. newValues[ attributeName ] = - metaFields?.[ source.args.key ] || source.args.key; + metaFields?.[ source.args.key ] ?? source.args.key; } return newValues; },