We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5dc8b9 commit 29830e5Copy full SHA for 29830e5
src/components/picker/NativePicker.js
@@ -28,7 +28,7 @@ class NativePicker extends BaseComponent {
28
29
onDone = () => {
30
const {selectedValue, items} = this.state;
31
- _.invoke(this.props, 'onChange', selectedValue || items[0].value);
+ _.invoke(this.props, 'onChange', selectedValue || items ? items[0].value : undefined);
32
this.input.toggleExpandableModal(false);
33
};
34
0 commit comments