Hello,
I am opening popup on enter key event on input field.
Problem is that when popup will be opened and user continue to press enter its always opens and opens new popup windows one over another.
Is there setting that allow only 1 instance to be opened?
In popup settings i see only Prevent scrolling the page when dialog is open, but i dont see preventing more than one instance.
I can do it with boolean variable for every popup, but i have allot of popups and some are called from multiple places so possibility to miss something is huge.
One boolean variable that will be for all popups is not good solution because there is some popups that opens after click in already opened popup, so if first make variable false, next will not popup.
If i make it with number variable and change it with separate number for every popup will also make problem because if popup number 1 is opened and from this popup you open popup 2, variable will be changed to 2, so after that you will be able to open new popup instance from popup number 1.
Best will be if there is some setting for this for not opening more than 1 instance of popup that is already opened. But as i see there is no option for this.
Anybody help?
Thank you in advance