Skip to content

Commit cdf1d53

Browse files
committed
fix(src): remove duplicate onClose callback in triggerOpenCloseCallbacks
1 parent 395c05e commit cdf1d53

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,9 @@ export default class RNPickerSelect extends PureComponent {
295295
onOpen();
296296
}
297297

298-
if (showPicker && onClose) {
299-
onClose(donePressed);
300-
}
301-
302298
if (showPicker) {
303299
if (onClose) {
304-
onClose();
300+
onClose(donePressed);
305301
}
306302

307303
// If the picker is currently shown, toggling it will start closing

0 commit comments

Comments
 (0)