mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 13:47:02 +08:00
refactor: input remove not use code (#27895)
This commit is contained in:
parent
d3610aa24a
commit
d5b63f8a61
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user