13:59:38.227 vue.runtime.esm.js:1737 TypeError: Cannot read property 'context' of undefined
at bind (vue-clickaway.common.js:22)
at update (vue-clickaway.common.js:72)
at callHook$1 (vue.runtime.esm.js:6289)
at _update (vue.runtime.esm.js:6218)
at Array.updateDirectives (vue.runtime.esm.js:6192)
at patchVnode (vue.runtime.esm.js:5927)
at updateChildren (vue.runtime.esm.js:5818)
at patchVnode (vue.runtime.esm.js:5932)
at VueComponent.patch [as __patch__] (vue.runtime.esm.js:6092)
at VueComponent.Vue._update (vue.runtime.esm.js:2666)
Whenever the directive's update method is called I get this error:
The issue arose after updating from 2.1.0 to 2.2.2. So I had a look at relevant changes and found this new line https://github.com/simplesmiler/vue-clickaway/blob/master/dist/vue-clickaway.common.js#L22
The stack trace indicates that
bindwas called viaupdate. When looking at update it's very clear, that thevnodeargument is not passed on tobind, hence the error (https://github.com/simplesmiler/vue-clickaway/blob/master/dist/vue-clickaway.common.js#L70-L72)