Skip to content

Commit dab4db8

Browse files
committed
no need to check domProps in extract-props because domProp casting can only happen for native elements
1 parent 5213ec7 commit dab4db8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/core/vdom/helpers/extract-props.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export function extractPropsFromVNodeData (
2222
return
2323
}
2424
const res = {}
25-
const { attrs, props, domProps } = data
26-
if (isDef(attrs) || isDef(props) || isDef(domProps)) {
25+
const { attrs, props } = data
26+
if (isDef(attrs) || isDef(props)) {
2727
for (const key in propOptions) {
2828
const altKey = hyphenate(key)
2929
if (process.env.NODE_ENV !== 'production') {
@@ -43,8 +43,7 @@ export function extractPropsFromVNodeData (
4343
}
4444
}
4545
checkProp(res, props, key, altKey, true) ||
46-
checkProp(res, attrs, key, altKey, false) ||
47-
checkProp(res, domProps, key, altKey, false)
46+
checkProp(res, attrs, key, altKey, false)
4847
}
4948
}
5049
return res

0 commit comments

Comments
 (0)