Skip to content

Commit

Permalink
Fix meta dropdown filter column to be controlled (#76)
Browse files Browse the repository at this point in the history
Fix meta dropdown filter column to be controlled
  • Loading branch information
Michele-Masciave authored Dec 19, 2024
1 parent a9c8c5c commit 4d4f09d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- `meta dropdownFilter` in order to be controlled.

## [5.9.0] - 2024-12-17

### Added
Expand Down
1 change: 1 addition & 0 deletions src/lib/ReactDataTable/ReactDataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ const ReactDataTable = <TData, TFilter extends FilterModel = Record<string, neve
) : meta?.dropdownFilter ? (
<Input
type="select"
value={(getFilterValue(header.column, table) as string) ?? ""}
onChange={(e) => {
setFilterValue(
header.column,
Expand Down

0 comments on commit 4d4f09d

Please sign in to comment.