Skip to content

Commit c5b2b85

Browse files
teleskop150750productdevbook
authored andcommitted
ref: normalizeAttrs
1 parent eba42ab commit c5b2b85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vue-primitives/src/shared/mergeProps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export function normalizeAttrs(attrs: PrimitiveElAttrs): IAttrsData {
106106

107107
if (disabled) {
108108
for (const propName in attrs) {
109-
if (isOn(propName)) {
109+
if (isOn(propName) && attrs[propName] !== undefined) {
110110
attrs[propName] = NOOP
111111
}
112112
}

0 commit comments

Comments
 (0)