sweet-modal-vue
sweet-modal-vue copied to clipboard
Question: dynamic icon for sweet-modal
Hello,
I want to use only one sweet-model component under my own component, and making the slot and icon dynamic, something like :
<sweet-modal ref="modal" :icon="icon">
{{ message }}
</sweet-modal>
And under methods I have something like:
this.message ="a custom message"
this.icon = 'error'
this.$refs.modal.open()
Everything works fine only this problem in the console :
Cannot read property 'classList' of undefined
Same Issue Here.