AutoQuery - New item - Requires two clicks

I have an autoquery grid with a new button. Whenever it is clicked the first time, the side window doesn’t open. The second click will open it. In fact a second click on any of the icons on the menu bar will open it if you click on the new button first. I’m not sure what the issue is or how to address it.

Here is a demo showing it (sound will explain the process):

Are you able to share the rest of the code on the page? I appreciate the video demonstrating the issue as that definitely makes it clear what behavior you are seeing, but trying to reproduce the issue is what it comes down to now. I noticed in your last post you were using a ref for the element, if you can isolate the functionality into a project or GitHub gist you can share I can investigate the root cause and help find a fix with you.