wip: more compat tweaks

This commit is contained in:
Evan You
2021-04-22 17:30:54 -04:00
parent 7e0224aa8c
commit 6f8fe4eac9
6 changed files with 29 additions and 10 deletions

View File

@@ -229,7 +229,7 @@ export function updateProps(
)
}
} else {
if (__COMPAT__ && shouldSkipAttr(key, instance)) {
if (__COMPAT__ && shouldSkipAttr(key, attrs[key], instance)) {
continue
}
if (value !== attrs[key]) {
@@ -337,7 +337,7 @@ function setFullProps(
// Any non-declared (either as a prop or an emitted event) props are put
// into a separate `attrs` object for spreading. Make sure to preserve
// original key casing
if (__COMPAT__ && shouldSkipAttr(key, instance)) {
if (__COMPAT__ && shouldSkipAttr(key, attrs[key], instance)) {
continue
}
if (value !== attrs[key]) {