Skip to content

Commit

Permalink
fix: fixed value to be return and removed unnecessary value
Browse files Browse the repository at this point in the history
  • Loading branch information
guidari committed Nov 7, 2024
1 parent aa67ac9 commit 8e55fac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ const TableToolbarSearch = ({
const onChange = (e) => {
setValue(e.target.value);
if (onChangeProp) {
onChangeProp(e);
onChangeProp(e, e.target.value);
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ interface TableToolbarFilterProps {
/**
* Provide an optional hook that is called each time the input is updated
*/
onChange?: (
event: '' | ChangeEvent<HTMLInputElement>,
value?: string
) => void;
onChange?: (event: '' | ChangeEvent<HTMLInputElement>) => void;

/**
* Provide an function that is called when the apply button is clicked
Expand Down

0 comments on commit 8e55fac

Please sign in to comment.