diff --git a/components/_util/props-util.js b/components/_util/props-util.js index 6dba0f19f..9da6e289f 100644 --- a/components/_util/props-util.js +++ b/components/_util/props-util.js @@ -234,7 +234,7 @@ const initDefaultProps = (propTypes, defaultProps) => { export function mergeProps () { const args = [].slice.call(arguments, 0) const props = {} - args.forEach((p, i) => { + args.forEach((p = {}, i) => { for (const [k, v] of Object.entries(p)) { props[k] = props[k] || {} if (isPlainObject(v)) { diff --git a/components/popconfirm/__tests__/__snapshots__/index.test.js.snap b/components/popconfirm/__tests__/__snapshots__/index.test.js.snap index 7462f8f05..6bdb64797 100644 --- a/components/popconfirm/__tests__/__snapshots__/index.test.js.snap +++ b/components/popconfirm/__tests__/__snapshots__/index.test.js.snap @@ -6,8 +6,7 @@ exports[`Popconfirm should show overlay when trigger is clicked 1`] = `