Skip to content

Commit

Permalink
chore(DateField): do not return dayPeriod for day granularity
Browse files Browse the repository at this point in the history
  • Loading branch information
epr3 committed Aug 9, 2024
1 parent c483586 commit 32baae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/radix-vue/src/DateField/utils/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function initializeSegmentValues(granularity: Granularity): SegmentValueO
if (key === 'literal' || key === null)
return false
if (granularity === 'day')
return !calendarDateTimeGranularities.includes(key)
return !calendarDateTimeGranularities.includes(key) && key !== 'dayPeriod'
else return true
})

Expand Down

0 comments on commit 32baae2

Please sign in to comment.