Skip to content

Commit

Permalink
Merge pull request Expensify#11120 from Expensify/neil-room-notif-pref
Browse files Browse the repository at this point in the history
Prevent picker onInputChange firing on re-render
  • Loading branch information
neil-marcellini authored Oct 5, 2022
2 parents 4eb2e8a + 3340c4d commit 62331f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Picker/BasePicker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class BasePicker extends React.Component {
useNativeAndroidPickerStyle={false}
placeholder={this.props.placeholder}
value={this.props.value || this.pickerValue}
key={this.props.value || this.pickerValue}
Icon={() => this.props.icon(this.props.size)}
disabled={this.props.disabled}
fixAndroidTouchableBug
Expand Down

0 comments on commit 62331f3

Please sign in to comment.