mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-29 22:07:46 +03:00
fixed text input autofocus when redirect to delegation screen
This commit is contained in:
parent
83c4ccf0ef
commit
c41afeefa8
@ -75,7 +75,10 @@ class DelegateScreen extends Component {
|
|||||||
if (referredUsername) {
|
if (referredUsername) {
|
||||||
this.setState({ destination: referredUsername, usersResult: [], step: 2 }, () => {
|
this.setState({ destination: referredUsername, usersResult: [], step: 2 }, () => {
|
||||||
this._fetchReceivedVestingShare();
|
this._fetchReceivedVestingShare();
|
||||||
|
this.destinationTextInput.current?.blur();
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
this.destinationTextInput.current?.focus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
componentDidUpdate(prevProps, prevState) {
|
componentDidUpdate(prevProps, prevState) {
|
||||||
@ -344,7 +347,6 @@ class DelegateScreen extends Component {
|
|||||||
multiline={isTextArea}
|
multiline={isTextArea}
|
||||||
numberOfLines={isTextArea ? 4 : 1}
|
numberOfLines={isTextArea ? 4 : 1}
|
||||||
keyboardType={keyboardType}
|
keyboardType={keyboardType}
|
||||||
autoFocus={true}
|
|
||||||
innerRef={this.destinationTextInput}
|
innerRef={this.destinationTextInput}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user