Skip to content

Commit 770981f

Browse files
author
Nathan Reyes
committed
Fix popover dismiss on datepicker select.
1 parent 6ba509b commit 770981f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/DatePicker.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
:attributes='attributes_'
1212
:date-validator='dateValidator'
1313
@drag='dragValue = $event'
14+
@input='updateValue'
1415
v-bind='$attrs'
1516
v-on='filteredListeners()'
1617
v-if='isInline'>
@@ -270,6 +271,9 @@ export default {
270271
suggestedInputText(val) {
271272
this.valueText = val;
272273
},
274+
value() {
275+
if (!this.popoverKeepVisibleOnInput) this.popoverForceHidden = true;
276+
},
273277
},
274278
created() {
275279
this.assignPageRange();
@@ -312,7 +316,6 @@ export default {
312316
} else {
313317
this.$emit('input', value);
314318
}
315-
if (!this.popoverKeepVisibleOnInput) this.popoverForceHidden = true;
316319
},
317320
parseValue(valueText) {
318321
let value = null;

0 commit comments

Comments
 (0)