Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Feb 15, 2025
1 parent 7a29be0 commit 88c7db9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/useDateTimeField/useDateTimeSegmentGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ export function useDateTimeSegmentGroup({
function isNumeric() {
const type = segment.getType();
const options = toValue(formatOptions);
if (type === 'literal') {
return false;
}

const optionFormat = options?.[type];
if (!optionFormat) {
return isNumericByDefault(type);
Expand Down

0 comments on commit 88c7db9

Please sign in to comment.