Skip to content

Commit e843854

Browse files
Merge pull request #448 from floriankapaun/send-options-on-change
Pass ComboboxItem Option to MRT_EditCellTextInput Select onChange handler
2 parents f5ca287 + 2ff313f commit e843854

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/mantine-react-table/src/components/inputs/MRT_EditCellTextInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ export const MRT_EditCellTextInput = <TData extends MRT_RowData>({
136136
value={value as any}
137137
{...(selectProps as MRT_SelectProps)}
138138
onBlur={handleBlur}
139-
onChange={(value) => {
140-
(selectProps as MRT_SelectProps).onChange?.(value as any);
139+
onChange={(value, option) => {
140+
(selectProps as MRT_SelectProps).onChange?.(value as any, option);
141141
setValue(value);
142142
}}
143143
onClick={(e) => {

0 commit comments

Comments
 (0)