From ced1dfed9141e7b19155e68783186cb4600a910a Mon Sep 17 00:00:00 2001 From: Crayon Date: Wed, 14 Aug 2019 09:32:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dcalendar=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=9C=A8picker=E7=BB=84=E4=BB=B6=E4=B8=AD=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E6=97=B6,selectValue=E6=97=A0=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Picker.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Picker.jsx b/src/Picker.jsx index bce6db69..f7f93590 100644 --- a/src/Picker.jsx +++ b/src/Picker.jsx @@ -150,7 +150,7 @@ class Picker extends React.Component { const extraProps = { ref: this.saveCalendarRef, defaultValue: defaultValue || calendarProps.defaultValue, - selectedValue: value, + selectedValue: value || calendarProps.selectedValue, onKeyDown: this.onCalendarKeyDown, onOk: createChainedFunction(calendarProps.onOk, this.onCalendarOk), onSelect: createChainedFunction(calendarProps.onSelect, this.onCalendarSelect),