vue2-dragula-demo
vue2-dragula-demo copied to clipboard
Vue2-dragula can't support IE browser , and cause these errors.
[Vue warn]: Error in directive dragula inserted hook: "TypeError: 对象不支持“find”属性或方法"
[object Error]{description: "对象不支持“find”...", message: "对象不支持“find”...", name: "TypeError", number: -2146827850, stack: "TypeError: ..."}
I don't have IE and I don't read Chinese. You are welcome to debug and submit a patch with a PR.
Also, demo is missing :key
on lists to work smoothly with Vue 2.2+
@appliqiang You need an Array.prototype.find
polyfill.
There are a few on npm, as well as this version on MDN:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find#Polyfill