Steps to reproduce:
- Load a page with enabled CodeEditor.
- Click on the Search and replace button. --> The dialog appears.
- Press Esc on keyboard or click on the close button. --> The dialog disappears.
- Click on the Search and Replace button again. --> Nothing happens.
- Click on the Search and Replace button again. --> The dialog appears again.
Expected result:
The dialog should appear on the first click on the button.