-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android] Cannot set empty field #592
Comments
Same issue on Android. I can set empty string as a value on the iOS device. But I can not set empty string as a value on the Android device. It does not trigger onValueChange. on the iOS device, it works. |
Any updates? Sorry but I really need this fixed. |
Hi all, is there any update? |
not a very useful update: you can't select the empty string Item because falsy value on Android will not trigger So the "empty field" will be something like this: <Picker.Item value=" " label="" /> and in the function that processing the selected value.... valueProcessor = (v = "")=>{
v = v.trim(); // clean up: placeholder value will be a empty string now
/* remaining tasks */
} |
On Android devices dropdown automatically selects first item. If i dont have Picker.item Select Property it would select Item 1.
What it shoud do is if value is 0 or undefined not show a label. It should be empty field. I can achieve empty field if i set first Item label to empty string. However than in modal i have this empty block.
The ideal would be if in modal it says Select Property label so user can click on that to reset field. And then the field should be empty.
Is there a way to achieve this? The code is usuall. Picker component with item map of Picker.Items.
The text was updated successfully, but these errors were encountered: