Skip to content

Commit

Permalink
Merge pull request #5832 from Expensify/aldo_fix-address-search-close…
Browse files Browse the repository at this point in the history
…-on-blur

Close AddressSearch results on blur
  • Loading branch information
Luke9389 authored Oct 14, 2021
2 parents a77d468 + 273b174 commit 825977a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/ExpensiTextInput/BaseExpensiTextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ class BaseExpensiTextInput extends Component {
}
}

onFocus() {
if (this.props.onFocus) { this.props.onFocus(); }
onFocus(event) {
if (this.props.onFocus) { this.props.onFocus(event); }
this.setState({isFocused: true});
this.activateLabel();
}

onBlur() {
if (this.props.onBlur) { this.props.onBlur(); }
onBlur(event) {
if (this.props.onBlur) { this.props.onBlur(event); }
this.setState({isFocused: false});
this.deactivateLabel();
}
Expand Down

0 comments on commit 825977a

Please sign in to comment.