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 8686dc8 commit 5680e2dCopy full SHA for 5680e2d
src/components/picker/PickerItem.js
@@ -139,9 +139,9 @@ class PickerItem extends BaseComponent {
139
140
// TODO: deprecate the check for object
141
onPress = () => {
142
- const {value, onPress} = this.props;
143
- // onPress(_.isObject(value) ? value : {value, label});
144
- onPress(value);
+ const {value, label, onPress} = this.props;
+ onPress(_.isObject(value) ? value : {value, label});
+ // onPress(value);
145
};
146
}
147
0 commit comments