diff --git a/src/components/date-picker/picker.vue b/src/components/date-picker/picker.vue
index e3cc84c..badc67b 100644
--- a/src/components/date-picker/picker.vue
+++ b/src/components/date-picker/picker.vue
@@ -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);
diff --git a/test/routers/date.vue b/test/routers/date.vue
index d8e89d3..0713eb9 100644
--- a/test/routers/date.vue
+++ b/test/routers/date.vue
@@ -1,30 +1,15 @@
-
+
+
+
+
+
+
+
+
--
libgit2 0.21.4