Commit 6fc4fba 1 parent edf4d4b commit 6fc4fba Copy full SHA for 6fc4fba
File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 71
71
:max-date =" maxDate"
72
72
:is-dark =" props.isDark"
73
73
color =" form-color"
74
- @close = " close "
74
+ @update:modelValue = " updateModelValue "
75
75
/>
76
76
<DatePicker
77
77
v-else
84
84
:max-date =" maxDate"
85
85
:is-dark =" props.isDark"
86
86
color =" form-color"
87
- @close = " close "
87
+ @update:modelValue = " updateModelValue "
88
88
/>
89
89
</template >
90
90
</UPopover >
@@ -143,6 +143,12 @@ const modeledValue = computed({
143
143
}
144
144
})
145
145
146
+ const updateModelValue = () => {
147
+ if (! props .withTime && ! props .dateRange ) {
148
+ pickerOpen .value = false
149
+ }
150
+ }
151
+
146
152
const inputClasses = computed (() => {
147
153
const classes = [props .theme .DateInput .input , props .theme .DateInput .borderRadius ]
148
154
if (props .disabled ) {
You can’t perform that action at this time.
0 commit comments