-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Description
Whenever the directive's update method is called I get this error:
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)
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 bind
was called via update
. When looking at update it's very clear, that the vnode
argument is not passed on to bind
, hence the error (https://github.com/simplesmiler/vue-clickaway/blob/master/dist/vue-clickaway.common.js#L70-L72)
Metadata
Metadata
Assignees
Labels
No labels