refactor: input remove not use code (#27895)

This commit is contained in:
Tom Xu 2020-11-20 14:13:00 +08:00 committed by GitHub
parent d3610aa24a
commit d5b63f8a61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,10 +150,6 @@ class Input extends React.Component<InputProps, InputState> {
this.clearPasswordValueAttribute();
}
// Since polyfill `getSnapshotBeforeUpdate` need work with `componentDidUpdate`.
// We keep an empty function here.
componentDidUpdate() {}
getSnapshotBeforeUpdate(prevProps: InputProps) {
if (hasPrefixSuffix(prevProps) !== hasPrefixSuffix(this.props)) {
devWarning(