Skip to content

Commit

Permalink
Fix #4845: Datatable menu filter with singular text field
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Sep 3, 2023
1 parent f0c5e57 commit 9849947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/datatable/ColumnFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export const ColumnFilter = React.memo((props) => {
let value = event.target.value;
let filterField = filters[field];

if (props.display === 'menu' && filterField.constraints) {
if (props.display === 'menu' && ObjectUtils.isNotEmpty(filterField.constraints)) {
filterField.constraints[index].value = value;
} else {
filterField.value = value;
Expand Down

0 comments on commit 9849947

Please sign in to comment.