Sweetalert2: Failed response when quick operation

Created on 8 Jul 2019  路  18Comments  路  Source: sweetalert2/sweetalert2

Screenshot_2

Uncaught TypeError: Vt.swalCloseEventFinishedCallback is not a function

released

Most helpful comment

I think I reproduced it @Freppex: https://swal2-press-enter-issue.glitch.me/

  • Focus on button with tab
  • Press enter and hold it down
  • Swal opens and close immediately and the error is shown in console

Let me work on a fix straight away....

All 18 comments

Thanks for reporting @Freppex!

Could you please provide a bit more info on what is "quick operation", e.g. how to reproduce the issue?

Hey, @limonte!
Keypress: Enter,
if you keep it connected, you will get an error.

if you keep it connected, you will get an error.

What you mean with "keep it connected" @Freppex?

@gverni,
Press and hold the Enter key.

@Freppex could you share an example that gives this issue? I tried on several examples of Swal holding the enter key and I haven't reproduced it. Also, if you can provide me which browser and OS yoy are using, it could help debugging further.

Also @Freppex, are you using it with a framework (react, vue, etc...)?

@gverni node.js
image

image

@Freppex can you share the code where you are firing the Swal?

view enginer swig
Chrome 75 on Windows 10

@gverni
Swal.fire({ type: 'error', title: 'Bo艧 Alan!', text: 'Bo艧 alan b谋rakamazs谋n.' });

I think I reproduced it @Freppex: https://swal2-press-enter-issue.glitch.me/

  • Focus on button with tab
  • Press enter and hold it down
  • Swal opens and close immediately and the error is shown in console

Let me work on a fix straight away....

Found the issue... my bad. Making a PR shortly...

Glad you found it.

@gverni close issue?

image

image

Good.

Let's keep it open until we make the release...

:tada: This issue has been resolved in version 8.13.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

Was this page helpful?
0 / 5 - 0 ratings