Skip to content

Commit

Permalink
chore(DateField): fix typo in DateField (#1435)
Browse files Browse the repository at this point in the history
  • Loading branch information
epr3 authored Nov 20, 2024
1 parent 5b34f91 commit 79e8509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/radix-vue/src/DateField/DateFieldRoot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ watch([modelValue, locale], ([_modelValue]) => {
if (_modelValue !== undefined) {
segmentValues.value = { ...syncSegmentValues({ value: _modelValue, formatter }) }
}
else if (Object.values(segmentValues.value).every(value => value === null) || modelValue === undefined) {
else if (Object.values(segmentValues.value).every(value => value === null) || _modelValue === undefined) {
segmentValues.value = { ...initialSegments }
}
})
Expand Down

0 comments on commit 79e8509

Please sign in to comment.