vue-flash-message
vue-flash-message copied to clipboard
Vue js flash messages component
When I call function flash() from Vuex it works but it doesn't apply global options like ``` Vue.use(VueFlashMessage, { messageOptions: { timeout: 1000, } }); ``` Calling it from Vuex...
for Typescript use
z-index
The default value of the style z-index of the block is too small for such a popup
Looking at this [code](https://github.com/keen-on-design/vue-flash-message/blob/b8cb33093b2a9226e69633ad8fae6cb687aeef28/src/FlashMessageComponent.js#L14), it use `innerHTML` and that means we can use HTML tag that can cause XSS Attack Payload ```javascript this.flash(''); ``` Be careful for flash message that...
ui.click | button.flash__close-button[type="button"] > span exception | TypeError: Cannot read property 'destroy' of undefined `{snip} this.storage[e]},destroyFlash:function(e){this.getFlash(e).destroy()},onMouseOver:function(e){var t=this.getFlash(e);void 0!==t&&t.onStartI {snip}`
Using vue-router, the flash message does not disappear when the route changes. This would be a desirable feature as used by many people.
Is this supported in vue3?