From 20ceedda2566211b5c790a12a687a01ce26380b5 Mon Sep 17 00:00:00 2001 From: Ben Merritt Date: Tue, 4 Jun 2024 23:55:34 -0700 Subject: [PATCH] fix(datepicker): always validate programmatic date updates (#927) HTML constraint validation can apply even if we're not using the native date picker. --- packages/oruga/src/components/utils/PickerWrapper.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/oruga/src/components/utils/PickerWrapper.vue b/packages/oruga/src/components/utils/PickerWrapper.vue index a14777a6b..2574245d8 100644 --- a/packages/oruga/src/components/utils/PickerWrapper.vue +++ b/packages/oruga/src/components/utils/PickerWrapper.vue @@ -123,9 +123,9 @@ watch( () => { // toggle picker if not stay open if (!props.stayOpen) togglePicker(false); - // check validation if native - if (isMobileNative.value && !isValid.value) checkHtml5Validity(); + if (!isValid.value) checkHtml5Validity(); }, + { flush: "post" }, ); const isActive = usePropBinding("active", props, emits, {