Skip to content

Commit b9a2316

Browse files
committed
fix(ui): clear input when click date-input's clear-button
1 parent eac6ade commit b9a2316

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/ui/src/components/_date-input/DateInput.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@ function DateInput(props: DDateInputProps, ref: React.ForwardedRef<DDateInputRef
418418
onClick={(e) => {
419419
e.stopPropagation();
420420

421+
dataRef.current.inputValue = ['', ''];
421422
_changeValue(null);
422423
onClear?.();
423424
}}

0 commit comments

Comments
 (0)