Fixed toast dismiss issue
This commit is contained in:
parent
35edbb7aa7
commit
18136a071e
File diff suppressed because one or more lines are too long
@ -39,7 +39,7 @@ export const toast = function(msg, icon = null, dismiss = true, id = null) {
|
|||||||
if (id){
|
if (id){
|
||||||
let toastClasses = document.querySelector(`div.toastify[toast_id=${id}]`).classList
|
let toastClasses = document.querySelector(`div.toastify[toast_id=${id}]`).classList
|
||||||
if (toastClasses){
|
if (toastClasses){
|
||||||
dismissable = toastClasses.indexOf('dismissable') != -1
|
dismissable = Array.from(toastClasses).indexOf('dismissable') != -1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (toastObj && dismissable) {
|
if (toastObj && dismissable) {
|
||||||
|
Loading…
Reference in New Issue
Block a user