@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/picker.tsx +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lotics/ui",
3
- "version": "1.13.3",
3
+ "version": "1.13.4",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./tokens": "./src/tokens.ts",
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
- selectedValue={value?.toString()}
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}