File tree 1 file changed +17
-17
lines changed
packages/runtime-core/src
1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -1005,6 +1005,23 @@ function baseCreateRenderer(
1005
1005
isSVG : boolean
1006
1006
) => {
1007
1007
if ( oldProps !== newProps ) {
1008
+ if ( oldProps !== EMPTY_OBJ ) {
1009
+ for ( const key in oldProps ) {
1010
+ if ( ! isReservedProp ( key ) && ! ( key in newProps ) ) {
1011
+ hostPatchProp (
1012
+ el ,
1013
+ key ,
1014
+ oldProps [ key ] ,
1015
+ null ,
1016
+ isSVG ,
1017
+ vnode . children as VNode [ ] ,
1018
+ parentComponent ,
1019
+ parentSuspense ,
1020
+ unmountChildren
1021
+ )
1022
+ }
1023
+ }
1024
+ }
1008
1025
for ( const key in newProps ) {
1009
1026
// empty string is not valid prop
1010
1027
if ( isReservedProp ( key ) ) continue
@@ -1025,23 +1042,6 @@ function baseCreateRenderer(
1025
1042
)
1026
1043
}
1027
1044
}
1028
- if ( oldProps !== EMPTY_OBJ ) {
1029
- for ( const key in oldProps ) {
1030
- if ( ! isReservedProp ( key ) && ! ( key in newProps ) ) {
1031
- hostPatchProp (
1032
- el ,
1033
- key ,
1034
- oldProps [ key ] ,
1035
- null ,
1036
- isSVG ,
1037
- vnode . children as VNode [ ] ,
1038
- parentComponent ,
1039
- parentSuspense ,
1040
- unmountChildren
1041
- )
1042
- }
1043
- }
1044
- }
1045
1045
if ( 'value' in newProps ) {
1046
1046
hostPatchProp ( el , 'value' , oldProps . value , newProps . value )
1047
1047
}
You can’t perform that action at this time.
0 commit comments