From d46234dc1e2221b9d4367dfb45a175b7796289d0 Mon Sep 17 00:00:00 2001 From: Vicente Canales Date: Tue, 11 Jul 2023 15:14:44 -0400 Subject: [PATCH] Add empty URL check --- packages/block-library/src/navigation-link/link-ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/navigation-link/link-ui.js b/packages/block-library/src/navigation-link/link-ui.js index ca0ce0a6162e0..5b574cca10769 100644 --- a/packages/block-library/src/navigation-link/link-ui.js +++ b/packages/block-library/src/navigation-link/link-ui.js @@ -193,7 +193,7 @@ export function LinkUI( props ) { showInitialSuggestions={ true } withCreateSuggestion={ userCanCreate } createSuggestion={ handleCreate } - forceIsEditingLink={ ! props.isDraft } + forceIsEditingLink={ ! props.isDraft && ! url } createSuggestionButtonText={ ( searchTerm ) => { let format;