[Vuejs]-VueJS update $data inside directive

0👍

Solved it by triggering an event:

var event = new Event('input', {bubbles: true})
el.value = 'Test'
el.dispatchEvent(event)

0👍

Remove the v-customdirective=”lang.content” attribute for the textarea element

Leave a comment