Skip to content
This repository was archived by the owner on Dec 3, 2024. It is now read-only.

Commit dd4099a

Browse files
authored
[Android] onChangeQuery is not called
When User click on "Clear" icon on Android, parent component is not notified about changed text
1 parent a134c55 commit dd4099a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SearchBar.android.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default class SearchBar extends React.PureComponent {
6060
}
6161

6262
_handleClear = () => {
63-
this.setState({ text: '' });
63+
this._handleChangeText('')
6464
};
6565
_handleChangeText = text => {
6666
this.setState({ text });

0 commit comments

Comments
 (0)