Skip to content

Commit

Permalink
changed autocompleteValue initializer to return actual column filterV…
Browse files Browse the repository at this point in the history
…alue

(aka fixed bug that I introduced myself in previous commit)
  • Loading branch information
avightclav authored and avightclav committed Jan 2, 2025
1 parent 7ea078b commit cfbc658
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export const MRT_FilterTextField = <TData extends MRT_RowData>({
);
const [autocompleteValue, setAutocompleteValue] =
useState<DropdownOption | null>(
isAutocompleteFilter ? (filterValue as DropdownOption | null) : null,
() => isAutocompleteFilter ? ((column.getFilterValue() || null) as DropdownOption | null) : null,
);

const handleChangeDebounced = useCallback(
Expand Down

0 comments on commit cfbc658

Please sign in to comment.