Skip to content

Commit

Permalink
Fix classNames being lost
Browse files Browse the repository at this point in the history
  • Loading branch information
matttdawson committed Jun 13, 2024
1 parent 3d3f203 commit b777c9a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/components/gridPopoverEdit/GridPopoutEditMultiSelect.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import clsx from "clsx";
import { GridBaseRow } from "../Grid";
import { ColDefT, GenericCellEditorProps, GridCell } from "../GridCell";
import { GridFormMultiSelect, GridFormMultiSelectProps } from "../gridForm/GridFormMultiSelect";
Expand All @@ -11,7 +12,7 @@ export const GridPopoutEditMultiSelect = <TData extends GridBaseRow, TValue = an
editor: GridFormMultiSelect,
...props,
editorParams: {
className: "GridMultiSelect-containerMedium",
...(props.editorParams as GridFormMultiSelectProps<TData>),
className: clsx("GridMultiSelect-containerMedium", props.editorParams?.className),
},
});
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import clsx from "clsx";
import { GridBaseRow } from "../Grid";
import { ColDefT, GenericCellEditorProps, GridCell } from "../GridCell";
import { GridFormMultiSelectGrid, GridFormMultiSelectGridProps } from "../gridForm/GridFormMultiSelectGrid";
Expand All @@ -11,7 +12,7 @@ export const GridPopoutEditMultiSelectGrid = <TData extends GridBaseRow, TValue
editor: GridFormMultiSelectGrid,
...props,
editorParams: {
className: "GridMultiSelect-containerMedium",
...(props.editorParams as GridFormMultiSelectGridProps<TData>),
className: clsx("GridMultiSelect-containerMedium", props.editorParams?.className),
},
});
4 changes: 2 additions & 2 deletions src/components/gridPopoverEdit/GridPopoverEditDropDown.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import clsx from "clsx";
import { GridBaseRow } from "../Grid";
import { ColDefT, GenericCellEditorProps, GridCell } from "../GridCell";
import { GridFormDropDown, GridFormDropDownProps } from "../gridForm/GridFormDropDown";
Expand All @@ -11,8 +12,7 @@ export const GridPopoverEditDropDown = <TData extends GridBaseRow, TValue = any>
editor: GridFormDropDown,
...props,
editorParams: {
// Defaults to large size container
...(props.editorParams as GridFormDropDownProps<TData>),
className: `GridPopoverEditDropDown-containerLarge ${props.editorParams?.className ?? ""}`,
className: clsx("GridPopoverEditDropDown-containerLarge", props.editorParams?.className),
},
});

0 comments on commit b777c9a

Please sign in to comment.