未验证 提交 1af8678a 编写于 作者: M Matthew Chan 提交者: GitHub

fix(jest): unknown prop initialValue on input tag (#6506)

上级 537ad6d6
......@@ -26,7 +26,7 @@ export default class InitializedInput extends React.Component {
// Filter out `value` and `defaultValue`, since we have our own
// `initialValue` interface that we provide.
// eslint-disable-next-line no-unused-vars, react/prop-types
const { value, defaultValue, ...otherProps } = this.props
const { value, defaultValue, initialValue, ...otherProps } = this.props
return <input {...otherProps} ref={c => this.inputRef = c} />
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册