Open Codelica opened 1 year ago
Looking at this further, it seems to depend if Autocomplete
is in a ScrollView
and if so, if the ScrollView
has keyboardShouldPersistTaps='always'
set to be inline with this change so that double taps of items aren't needed. Only setting keyboardShouldPersistTaps='never'
seems to allow the onBlur
event to hit but that also results in issue like needing double taps, not being able to select the Autocomplete again, etc that always
solved. Seems like some re-working will be necessary for onBlur
to hit.
Can someone give me a status update on this bug? Any time indication for the fix? If it takes to long to fix I'll need to find another solution.
🐛 Bug Report
To Reproduce
Steps to reproduce the behavior:
Take the sample code for "Autocomplete Simple Usage" from https://akveo.github.io/react-native-ui-kitten/docs/components/autocomplete/overview#autocomplete
Add a simple
onBlur
handler like:onBlur={() => { alert('onBlur called!'); }}
Use the Autocomplete component -> Enter some text then make it loose focus by touching/clicking on the background.
Notice that the
onBlur
handler is not called.Expected behavior
If supplied,
onBlur
should be called whenever the Autocomplete element loosed focus.Link to runnable example or repository (highly encouraged)
Can't seem to make a runnable Expo Snack currently, getting an odd error trying to load React.
UI Kitten and Eva version
Environment information