Skip to content

Commit 5680e2d

Browse files
committed
Fix issue with Picker API migration - multi mode support is broken in the new API
1 parent 8686dc8 commit 5680e2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/picker/PickerItem.js

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

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

0 commit comments

Comments
 (0)