Confirming alert with Enter triggers hotkey again

I have 'enter' as hotkey for a button which shows an alert. When closing the alert with 'enter' triggers the hotkey, showing the alert again. This happens in the Internet Explorer and Edge Browser. Firefox and Chrome have no problem.
As example we can use the snippet from the hotkey documentation https://snippet.webix.com/0c59b46c

Is there a way to prevent this behaviour in the Explorer/Edge?

Tagged:

Comments

  • workaround
    for webix >= v6.2

    function doOnClick(){
      window.currentAlert = window.currentAlert || webix.alert("Login button clicked!").then(function(){
        window.currentAlert = null;
      });
    };
    

    other

    function doOnClick(){
      window.currentAlert = window.currentAlert || webix.alert("Login button clicked!", function(){
        setTimeout(function(){
          window.currentAlert = null;
        })
      });  
    };
    
  • Thank you!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!