Skip to content

Commit

Permalink
✨ Pass ComboboxItem Option to MRT_EditCellTextInput Select onChange H…
Browse files Browse the repository at this point in the history
…andler
  • Loading branch information
florian.kapaun committed Nov 21, 2024
1 parent f5ca287 commit 2ff313f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ export const MRT_EditCellTextInput = <TData extends MRT_RowData>({
value={value as any}
{...(selectProps as MRT_SelectProps)}
onBlur={handleBlur}
onChange={(value) => {
(selectProps as MRT_SelectProps).onChange?.(value as any);
onChange={(value, option) => {
(selectProps as MRT_SelectProps).onChange?.(value as any, option);
setValue(value);
}}
onClick={(e) => {
Expand Down

0 comments on commit 2ff313f

Please sign in to comment.