Open
Description
@VividLemon is it possible to create one more release to continue support vue3 in compat mode?
Describe the bug
In this pr "_assign" key was changed to Symbol("_assign") vuejs/core#8681
As a result this code doesn't work anymore:
Lines 37 to 48 in 5173dd1
Possible solution
let assignSymbol;
// See https://github.com/vuejs/vue-next/pull/4121 for details
Vue.vModelDynamic.created = function(el, binding, vnode) {
originalVModelDynamicCreated.call(this, el, binding, vnode)
if(!assignSymbol) {
assignSymbol = Object.getOwnPropertySymbols(el).find(s => s.description === '_assign');
}
if (!el[assignSymbol]) {
el[assignSymbol] = function () {};
}
}
Vue.vModelDynamic.beforeUpdate = function(el, binding, vnode) {
originalVModelDynamicBeforeUpdate.call(this, el, binding, vnode)
if(!assignSymbol) {
assignSymbol = Object.getOwnPropertySymbols(el).find(s => s.description === '_assign');
}
if (!el[assignSymbol]) {
el[assignSymbol] = function () {};
}
}
Metadata
Metadata
Assignees
Labels
No labels