File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,6 @@ export default {
76
76
type: Boolean ,
77
77
default: false ,
78
78
},
79
- resetTypedDate: {
80
- type: [Date ],
81
- default: null ,
82
- },
83
79
selectedDate: {
84
80
type: Date ,
85
81
default: null ,
@@ -129,11 +125,6 @@ export default {
129
125
return this .formattedDate
130
126
},
131
127
},
132
- watch: {
133
- resetTypedDate () {
134
- this .typedDate = ' '
135
- },
136
- },
137
128
mounted () {
138
129
this .input = this .$el .querySelector (' input' )
139
130
},
Original file line number Diff line number Diff line change 2
2
<div class =" vdp-datepicker" :class =" [wrapperClass, { rtl: isRtl }]" >
3
3
<DateInput
4
4
:id =" id"
5
+ ref =" dateInput"
5
6
:autofocus =" autofocus"
6
7
:bootstrap-styling =" bootstrapStyling"
7
8
:calendar-button =" calendarButton"
21
22
:placeholder =" placeholder"
22
23
:ref-name =" refName"
23
24
:required =" required"
24
- :reset-typed-date =" resetTypedDate"
25
25
:selected-date =" selectedDate"
26
26
:show-calendar-on-button-click =" showCalendarOnButtonClick"
27
27
:show-calendar-on-focus =" showCalendarOnFocus"
@@ -219,7 +219,6 @@ export default {
219
219
* {Number}
220
220
*/
221
221
pageTimestamp,
222
- resetTypedDate: utils .getNewDateObject (),
223
222
/*
224
223
* Selected Date
225
224
* {Date}
@@ -367,7 +366,7 @@ export default {
367
366
return
368
367
}
369
368
370
- this .resetTypedDate = this . utils . getNewDateObject ()
369
+ this .$refs . dateInput . typedDate = ' '
371
370
this .selectDate (cell .timestamp )
372
371
this .close ()
373
372
},
You can’t perform that action at this time.
0 commit comments