fix backspace in search uri bar
This commit is contained in:
parent
67a2b76e41
commit
f4fe9294f0
1 changed files with 2 additions and 3 deletions
|
@ -43,7 +43,6 @@ class UriBar extends React.PureComponent {
|
||||||
currentValue: null,
|
currentValue: null,
|
||||||
inputText: null,
|
inputText: null,
|
||||||
focused: false,
|
focused: false,
|
||||||
currentValueSet: false,
|
|
||||||
// TODO: Add a setting to enable / disable direct search?
|
// TODO: Add a setting to enable / disable direct search?
|
||||||
directSearch: true
|
directSearch: true
|
||||||
};
|
};
|
||||||
|
@ -139,8 +138,8 @@ class UriBar extends React.PureComponent {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { navigation, suggestions, query, value } = this.props;
|
const { navigation, suggestions, query, value } = this.props;
|
||||||
if (!this.state.currentValue) {
|
if (this.state.currentValue === null) {
|
||||||
this.setState({ currentValue: value, currentValueSet: true });
|
this.setState({ currentValue: value });
|
||||||
}
|
}
|
||||||
|
|
||||||
let style = [uriBarStyle.overlay];
|
let style = [uriBarStyle.overlay];
|
||||||
|
|
Loading…
Reference in a new issue