vuejs / Discussion

Vue.js discussion
167 stars 17 forks source link

Problem using select2 directive inside custom component #480

Open ronirigoni opened 8 years ago

ronirigoni commented 8 years ago

I've followed the example http://vuejs.org/examples/select2.html to create a custom directive for using select2, and it worked fine.

But when I create a custom component I can't use the new directive inside it. It returns a weird javascript error on my console: TypeError: b.ownerDocument.defaultView is null

Am I missing something or is this an issue?