Skip to content

Commit

Permalink
fix(datepicker): always validate programmatic date updates
Browse files Browse the repository at this point in the history
HTML constraint validation can apply even if we're not using the native
date picker.
  • Loading branch information
blm768 committed May 17, 2024
1 parent c960e42 commit 48308f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/oruga/src/components/utils/PickerWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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<boolean>("active", props, emits, {
Expand Down

0 comments on commit 48308f6

Please sign in to comment.