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

This commit is contained in:
Matthew Chan
2020-10-14 17:24:36 -07:00
committed by GitHub
parent 537ad6d6bf
commit 1af8678ae1

View File

@@ -26,7 +26,7 @@ export default class InitializedInput extends React.Component {
// Filter out `value` and `defaultValue`, since we have our own // Filter out `value` and `defaultValue`, since we have our own
// `initialValue` interface that we provide. // `initialValue` interface that we provide.
// eslint-disable-next-line no-unused-vars, react/prop-types // 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} /> return <input {...otherProps} ref={c => this.inputRef = c} />
} }
} }