Bug 1829722

Summary: Modal of create new project gets deactivated automatically
Product: OpenShift Container Platform Reporter: Gajanan More <gamore>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.5CC: aos-bugs, hasha, jokerman, spadgett
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-13 17:32:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Modal gets deactivated and it searches the operator name none

Description Gajanan More 2020-04-30 07:45:17 UTC
Created attachment 1683206 [details]
Modal gets deactivated and it searches the operator name

Description of problem:
The modal of creating new project on the operator hub page automatically deactivates. User keeps on typing and didn't know what is actually happening. Please check the updating URL in the address bar. 

Version-Release number of selected component (if applicable):
4.5.0-0.nightly-2020-04-30-002507

How reproducible:
Every time

Steps to Reproduce:
1. Go to Administrator perspective and then Operators
2. Click on the Operator Hub and while the page is loading, from the drop down menu of Projects, click on create new project and the modal of create new project will pop up and now try to enter the name of project.
3. You will observe that the modal deactivates and the it start searching the name of the operator.

Actual results:
The modal of create new project should not get deactivated. 

Expected results:
It should only enter the name of the project.

Additional info:
Build: 4.5.0-0.nightly-2020-04-30-002507
Browser: Google Chrome Version 81.0.4044.129

Please have a look at the attached video.

Comment 1 Samuel Padgett 2020-04-30 15:56:09 UTC
It looks like the OperatorHub search input is stealing focus from behind the modal.

Comment 2 Samuel Padgett 2020-04-30 16:08:39 UTC
The focus is set when the component is mounted here. This steals focus from the dialog.

https://github.com/spadgett/console/blob/3c517e3b8d6677e0f5e8ebc0a15a0cdd7886e3d6/frontend/public/components/utils/tile-view-page.jsx#L572

Comment 5 shahan 2020-05-06 07:01:09 UTC
create project works well in operatorhub page.
4.5.0-0.nightly-2020-05-04-113741

Comment 6 errata-xmlrpc 2020-07-13 17:32:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:2409