Skip to content

Commit

Permalink
restart ci
Browse files Browse the repository at this point in the history
  • Loading branch information
HBS999 committed Nov 18, 2024
1 parent 1c22945 commit 31aa165
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/core/src/time-field/time-field-field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import { DateFormatter } from "@internationalized/date";
import {
callHandler,
createGenerateId,
getFocusableTreeWalker,
getWindow,
mergeDefaultProps,
mergeRefs,
} from "@kobalte/utils";
Expand Down Expand Up @@ -179,6 +177,7 @@ export function TimeFieldField<T extends ValidComponent = "div">(
Object.keys(validSegments()).length >= Object.keys(allSegments()).length
) {
timeFieldContext.setValue(newValue);
setPlaceholderDate(convertValue(newValue));
} else {
setPlaceholderDate(convertValue(newValue));
}
Expand Down
3 changes: 1 addition & 2 deletions packages/core/src/time-field/time-field-root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,7 @@ export function TimeFieldRoot<T extends ValidComponent = "div">(
granularity,
hideTimeZone: () => local.hideTimeZone ?? false,
shouldForceLeadingZeros: () => local.shouldForceLeadingZeros ?? false,
placeholderValue: () =>
local.placeholderValue ?? local.defaultValue ?? local.value ?? new Time(),
placeholderValue: () => value() || (local.placeholderValue ?? new Time()),
defaultTimeZone,
formattedValue,
focusManager: () => focusManager,
Expand Down

0 comments on commit 31aa165

Please sign in to comment.