-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
Steps to reproduce:
- Click Cmd+F (dialog is opened with help of
FindInPath.openFindWindow()) - Press X-button to close the dialog (
FindInPath.closeFindWindow()) - Immediately after that press Cmd+F again
Actual result: dialog is not shown and it is not shown on all subsequent Cmd+F
Details on race condition:
- on step 2
FindInPath.closeFindWindow()setthis[hasOpened] = false - then
closeFindWindowshedulemoveand return - on step 3
FindInPath.openFindWindow()start executing, it check thatthis[hasOpened]is false, schedulemoveof the dialog to the appropriate position and changethis[hasOpened] = true movepromise scheduled bycloseFindWindowexectutes and move dialog to invisible positionmovepromise scheduled byopenFindWindowexectutes and move dialog to visible position- visibility is set to
visibleby timeout function fromopenFindWindow thenpromise scheduled aftermoveincloseFindWindowreset visibility tohidden
This way we have dailog element in appropriate position, but it is invisible and this[hasOpened] is true
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels