]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(compat): ensure fallthrough *Native events are not dropped during props update...
authorThorsten Lünborg <t.luenborg@googlemail.com>
Fri, 21 Jan 2022 06:21:42 +0000 (07:21 +0100)
committerGitHub <noreply@github.com>
Fri, 21 Jan 2022 06:21:42 +0000 (01:21 -0500)
packages/runtime-core/src/componentProps.ts

index 946564b5e4adc446c57fc0d4a2852591c375f443..7ed8aeee4a1ff11c9c2d04130a7cf80b151460ca 100644 (file)
@@ -303,7 +303,11 @@ export function updateProps(
     // attrs point to the same object so it should already have been updated.
     if (attrs !== rawCurrentProps) {
       for (const key in attrs) {
-        if (!rawProps || !hasOwn(rawProps, key)) {
+        if (
+          !rawProps ||
+          (!hasOwn(rawProps, key) &&
+            (!__COMPAT__ || !hasOwn(rawProps, key + 'Native')))
+        ) {
           delete attrs[key]
           hasAttrsChanged = true
         }