From 6ae352882c24803c89c2c33a30649d6fae4b37df Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 28 Aug 2019 16:55:51 +0800 Subject: [PATCH] fix(Picker): avoid click event when moving (#4273) --- src/picker/PickerColumn.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/picker/PickerColumn.js b/src/picker/PickerColumn.js index 76ecb91d9..f9b586793 100644 --- a/src/picker/PickerColumn.js +++ b/src/picker/PickerColumn.js @@ -141,6 +141,10 @@ export default createComponent({ }, onClickItem(index) { + if (this.moving) { + return; + } + this.duration = DEFAULT_DURATION; this.setIndex(index, true); },