New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Button hide no longer works from 1.2 to 1.3 #109
Comments
How are you using? |
Function structure: How to use: |
Actually, the function signature not matches what you say. $iziToast.hide = function ($toast, options, closedBy) {
...
> $toast.classList.add(PLUGIN_NAME+'-closing');
...
} If you swap the two parameters, everything works again. |
Negative. This is the correct signature of the function: Line 515 |
Hm, it's because i have reinstalled your package with version 1.2, so it's break as i copy from documentation which use the latest signature. Thanks for you reactivity and your amazing work on this project |
Thank you. I will correct a few more things in v1.3 and will soon publish in NPM. |
After update to 1.3, the code to hide the toast after a a yes/no button click no longer works. This error is thrown.
iziToast.min.js:6 Uncaught TypeError: Cannot read property 'add' of undefined
at Object.e.hide (iziToast.min.js:6)
at ciscoconsole.min.js:1
at HTMLButtonElement. (iziToast.min.js:6)
The text was updated successfully, but these errors were encountered: