Skip to content

Commit 2493f45

Browse files
refactor: Remove comment
1 parent 4500be8 commit 2493f45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@react-stately/datepicker/src/useDateFieldState.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ export function useDateFieldState<T extends DateValue = DateValue>(props: DateFi
256256
// If the value is set to null and all segments are valid, reset the placeholder.
257257
if (value !== previousValue && value == null && Object.keys(validSegments).length === Object.keys(allSegments).length) {
258258
validSegments = {};
259-
setValidSegments(validSegments); // reason
259+
setValidSegments(validSegments);
260260
setPlaceholderDate(createPlaceholderDate(props.placeholderValue, granularity, calendar, defaultTimeZone));
261261
setPreviousValue(value);
262262
setIsValueConfirmed(true);

0 commit comments

Comments
 (0)