vuesax-next
vuesax-next copied to clipboard
Notification - add property undefined - dark color - VuesaxNext
Hello, I found an issue when I use dark color on Notification with vuesax, I get this error message.
[Vue warn]: Error in nextTick: "TypeError: Cannot read property 'add' of undefined"
(found in <Root>)
TypeError: Cannot read property 'add' of undefined
at setColor (vuesax.js?574d:18214)
at VueComponent.eval (vuesax.js?574d:25497)
at Array.eval (vue.runtime.esm.js?2b0e:1980)
at flushCallbacks (vue.runtime.esm.js?2b0e:1906)
Thank's
I tried creating dark notification programmatically and it works:
this.$vs.notification({
color: 'dark',
duration: 'none'
})
Hello @ayushsharma82 when I use with those params:
this.$vs.notification({
icon: `<i class='bx bx-check' ></i>`,
duration: 10000,
progress: 'auto',
position: 'bottom-center',
title: title,
text: text,
border: 'dark',
})
I get this message error.
Used your exact configuration. It's working in my case.
Try updating your vuesax to latest alpha release. npm install vuesax@next
Ahh. Got it! This error comes when we click the close button. Let me see where the error is coming from.
Added a pull request to fix this bug. @luisDanielRoviraContreras
I'm going to review it and join it, thank you very much
@luisDanielRoviraContreras Any updates?