Skip to content

Commit

Permalink
Add clear button for single date search bar control
Browse files Browse the repository at this point in the history
  • Loading branch information
vesnushka committed Dec 20, 2024
1 parent c2e4c3b commit 2acc20f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export function useDateColumn(props: SearchBarColumnSingleDateTypeProps) {
(value: moment.Moment | null) => {
if (value) {
onChange(value, columnFilterValue.column.id);
} else {
onChange(undefined, columnFilterValue.column.id);
}
},
[onChange, columnFilterValue],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export function DateSingleColumn(props: SearchBarColumnSingleDateTypeProps) {
onChange={onColumnChange}
value={columnFilterValue.value}
placeholder={placeholder}
clearIcon={false}
defaultOpen={defaultOpen}
allowClear
/>
);
}

0 comments on commit 2acc20f

Please sign in to comment.