picker icon indicating copy to clipboard operation
picker copied to clipboard

Picker freezes web app when selecting NEW item

Open asawyers opened this issue 2 years ago • 0 comments

Hey guys, ran into an interesting bug with the Picker. Pretty normal use that works exactly as expected on iOS/Android. But for some reason on web, it freezes and crashes the entire application when selecting a NEW value (does not crash when you select the current value), with no error messages shown. Any ideas why this is happening?

Versions: "@react-native-picker/picker": "2.4.10", "react-native": "0.72.4",

<Picker
              selectedValue={selectedLocation}
              onValueChange={(itemValue, itemIndex) =>
                setSelectedLocation(itemValue)
              }
              style={styles.picker}>
              {locations.map(location => (
                <Picker.Item label={location.name} value={location.id} key={location.id} />
              ))}
            </Picker>

asawyers avatar Sep 15 '23 20:09 asawyers