Skip to content

Commit

Permalink
chore(DateField): fix typo in DateField
Browse files Browse the repository at this point in the history
  • Loading branch information
epr3 committed Nov 18, 2024
1 parent 0cf78ab commit 36fd25f
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 36fd25f

Please sign in to comment.