From 32e10bfbe5d3c43e32fcef284acc7c3fc0afbeef Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Fri, 28 Apr 2023 11:02:44 +0400 Subject: [PATCH] URLInput: Update the 'ENTER' key down event handler --- packages/block-editor/src/components/url-input/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/block-editor/src/components/url-input/index.js b/packages/block-editor/src/components/url-input/index.js index cc4af719e63ec3..f030dfeb78055e 100644 --- a/packages/block-editor/src/components/url-input/index.js +++ b/packages/block-editor/src/components/url-input/index.js @@ -309,11 +309,10 @@ class URLInput extends Component { // Submitting while loading should trigger onSubmit. case ENTER: { - event.preventDefault(); if ( this.props.onSubmit ) { + event.preventDefault(); this.props.onSubmit( null, event ); } - break; } }