Skip to content

Commit 2265d81

Browse files
committed
Fix missed issue with migrating Picker API - PickerItem needs to retrieve the correct value format
1 parent 41d4917 commit 2265d81

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/picker/PickerItem.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,9 @@ class PickerItem extends BaseComponent {
139139

140140
// TODO: deprecate the check for object
141141
onPress = () => {
142-
const {label, value, onPress} = this.props;
143-
onPress(_.isObject(value) ? value : {value, label});
142+
const {value, onPress} = this.props;
143+
// onPress(_.isObject(value) ? value : {value, label});
144+
onPress(value);
144145
};
145146
}
146147

0 commit comments

Comments
 (0)