From 24930d4a8dfd06c72e284c0c552fd47f8b6c786a Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Thu, 11 Jan 2024 09:51:22 +0000 Subject: [PATCH] Rename the search field at all times --- .../src/components/link-control/index.js | 80 +++++++------------ 1 file changed, 28 insertions(+), 52 deletions(-) diff --git a/packages/block-editor/src/components/link-control/index.js b/packages/block-editor/src/components/link-control/index.js index 1476b47879a5a..c02855d1e226a 100644 --- a/packages/block-editor/src/components/link-control/index.js +++ b/packages/block-editor/src/components/link-control/index.js @@ -334,8 +334,6 @@ function LinkControl( { const showActions = isEditingLink && hasLinkValue; - const showURLInput = hasLinkValue && ! value?.id; - // Only show text control once a URL value has been committed // and it isn't just empty whitespace. // See https://github.com/WordPress/gutenberg/pull/33849/#issuecomment-932194927. @@ -401,18 +399,6 @@ function LinkControl( { 'has-actions': showActions, } ) } > - { showURLInput && ( - - ) } - { showTextControl && ( ) } - { ! hasLinkValue && ( - <> - + { ! showActions && ( +
+
- ) } - + ) } { errorMessage && (