From f39ea6dad6271972e35c819f79a1068412b51633 Mon Sep 17 00:00:00 2001 From: muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com> Date: Tue, 1 Nov 2022 12:40:46 +0530 Subject: Re-enable editing of the address bar to manually access a different url within the context of the current service (#728) --- src/features/webControls/components/WebControls.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/features') diff --git a/src/features/webControls/components/WebControls.tsx b/src/features/webControls/components/WebControls.tsx index ebcd93c9e..51bf7e541 100644 --- a/src/features/webControls/components/WebControls.tsx +++ b/src/features/webControls/components/WebControls.tsx @@ -210,15 +210,19 @@ class WebControls extends Component { editUrl: false, }); navigate(inputUrl); + + if (this.inputRef && this.inputRef.current) { + this.inputRef.current.blur(); + } } else if (event.key === 'Escape') { this.setState({ editUrl: false, inputUrl: url, }); - } - if (this.inputRef && this.inputRef.current) { - this.inputRef.current.blur(); + if (this.inputRef && this.inputRef.current) { + this.inputRef.current.blur(); + } } }} ref={this.inputRef} -- cgit v1.2.3-70-g09d2