@lotics/ui 1.13.3 → 1.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/picker.tsx +4 -1
package/package.json
CHANGED
package/src/picker.tsx
CHANGED
|
@@ -103,7 +103,10 @@ function StandardPicker<T extends string>(props: PickerProps<T, false>) {
|
|
|
103
103
|
<RNPicker
|
|
104
104
|
ref={pickerRef}
|
|
105
105
|
testID={testID}
|
|
106
|
-
|
|
106
|
+
// Empty selection maps to "" (the placeholder option's value), never
|
|
107
|
+
// undefined — otherwise the native <select> goes uncontrolled and a
|
|
108
|
+
// programmatic reset to null leaves the prior DOM selection in place.
|
|
109
|
+
selectedValue={value?.toString() ?? ""}
|
|
107
110
|
onValueChange={handleStandardPickerChange}
|
|
108
111
|
style={[styles.picker, getInputTextStyle(), style as StyleProp<TextStyle>]}
|
|
109
112
|
placeholder={placeholder}
|