AlertifyJS icon indicating copy to clipboard operation
AlertifyJS copied to clipboard

alertify.confirm() returns OK and not CANCEL when ENTER KEY Pressed and CANCEL is default

Open dbareis opened this issue 1 year ago • 0 comments

I am calling "alertify**.confirm()**" with these options:

  • closable: false
  • closableByDimmer: false
  • defaultFocus: "cancel"
  • frameless: false
  • maximizable: true
  • pinnable: true
  • resizable: true
  • title: "A Title

If I don't mouse click the dialog and press ENTER, it response with CANCEL (good). If I mouse click the anywhere dialog (not a button) and press ENTER, it response with CANCEL (bug). Clicking the dialog should not change the focus.

dbareis avatar Nov 17 '24 02:11 dbareis