🐛 répare le problème du clavier qui revient toujours sur chrome iOS
parent
7b7e4c7480
commit
39654f4559
|
@ -30,6 +30,12 @@ class CurrencyInput extends Component {
|
|||
value: nextProps.value
|
||||
}
|
||||
}
|
||||
shouldComponentUpdate(nextProps, nextState) {
|
||||
return (
|
||||
this.state.value !== nextState.value ||
|
||||
this.props.language !== nextProps.language
|
||||
)
|
||||
}
|
||||
getSnapshotBeforeUpdate = () => {
|
||||
return this.input.selectionStart
|
||||
}
|
||||
|
@ -69,6 +75,7 @@ class CurrencyInput extends Component {
|
|||
this.props.onChange(event)
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
let forwardedProps = dissoc(
|
||||
['onChange', 'value', 'language', 'className'],
|
||||
|
|
Loading…
Reference in New Issue