Can you set focus to none?


Would appreciate some assistance with an issue I’m facing.

In the pop up that I have created as shown in the image below, the focus seems to be automatically set to the first input field. Is there any way to set focus to no field ?

I would like it to look like this when the pop up opens:

Thanks in advance


Hi there, @deepak1… I have seen this issue pop up (no pun intended) a number of times, and the prevailing wisdom with regard to how to address it seems to be to put a tiny, hidden input somewhere on the popup and set the focus to that input so that the focus isn’t automatically set to any of the elements that are being shown. It’s definitely hacky, but if it works, it works, eh?

Hope this helps.



That’s a brilliant hack. Thanks a lot Mike!



1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.