Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: support customized defined className #465

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
className: "GridPopoverEditDropDown-containerLarge",
...(props.editorParams as GridFormDropDownProps<TData>),
className: clsx("GridPopoverEditDropDown-containerLarge", props.editorParams?.className),
},
});
Loading