fixed DatePicker bug
edit date when Do Not use options props
This commit is contained in:
parent
63e0444e55
commit
d31b080199
2 changed files with 11 additions and 26 deletions
|
@ -295,8 +295,8 @@
|
|||
const parsedDate = parseDate(value, format);
|
||||
|
||||
if (parsedDate instanceof Date) {
|
||||
const options = this.options;
|
||||
if (options.disabledDate && typeof options.disabledDate === 'function' && options.disabledDate(new Date(parsedDate))) {
|
||||
const options = this.options || false;
|
||||
if (options && options.disabledDate && typeof options.disabledDate === 'function' && options.disabledDate(new Date(parsedDate))) {
|
||||
correctValue = oldValue;
|
||||
} else {
|
||||
correctValue = formatDate(parsedDate, format);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue