File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,10 @@ export default {
7070 * @return {Date}
7171 */
7272 minimumDate () {
73+ if (! this .min && this .type === ' time' ) {
74+ return null
75+ }
76+
7377 return this .min || new Date (this .davRestrictionsStore .minimumDate )
7478 },
7579
@@ -79,6 +83,10 @@ export default {
7983 * @return {Date}
8084 */
8185 maximumDate () {
86+ if (! this .max && this .type === ' time' ) {
87+ return null
88+ }
89+
8290 return this .max || new Date (this .davRestrictionsStore .maximumDate )
8391 },
8492 },
@@ -97,7 +105,7 @@ export default {
97105 this .pendingDate = date
98106 },
99107
100- onBlur (event ) {
108+ onBlur () {
101109 // When focus leaves the picker, commit the pending date
102110 if (this .pendingDate === undefined || this .pendingDate === null ) {
103111 return
@@ -117,6 +125,10 @@ export default {
117125 * @return {boolean}
118126 */
119127 disabledDate (date ) {
128+ if (! this .max && ! this .min && this .type === ' time' ) {
129+ return false
130+ }
131+
120132 return date < this .minimumDate || date > this .maximumDate
121133 },
122134 },
You can’t perform that action at this time.
0 commit comments