raynor85 / react-native-material-selectize

A React Native component inspired to Selectize which follows Material Design guidelines.
MIT License
55 stars 32 forks source link

Fix TextInput text not clearing after submit on Android. #23

Closed econner closed 5 years ago

econner commented 5 years ago

Hello @raynor85 ,

Thanks for this great library! I encountered a bug on Android devices (specifically a Galaxy S8 running Android 8.0.0) in which the text input does not clear after hitting submit. The input appears to clear, but once typing is resumed the old text appears again.

Here you can see the bug. Note that I am only typing one 'h' when the input is focused the second time but 'hh' appears: selectize_bug

And the fix. Only one 'h' appears the second time the input is focused. selectize_fix

Relevant stack overflow discussions: https://stackoverflow.com/questions/37798584/react-native-when-submitting-a-text-input-in-android-the-word-suggestions-are https://stackoverflow.com/questions/43233223/react-native-text-input-clear-doesnt-clear-text

raynor85 commented 5 years ago

Great spot! Will merge