Skip to content

Commit ceeb1e9

Browse files
committed
fix: update selection logic to allow autoSelect on Multi selection type
1 parent bbe7b18 commit ceeb1e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/pluggableWidgets/datagrid-web/src/Datagrid.editorConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function hideSelectionProperties(defaultProperties: Properties, values: Datagrid
142142
hidePropertyIn(defaultProperties, values, "itemSelectionMode");
143143
}
144144

145-
if (itemSelection !== "Single") {
145+
if (itemSelection === "None") {
146146
hidePropertyIn(defaultProperties, values, "autoSelect");
147147
}
148148

packages/shared/widget-plugin-grid/src/selection/createSelectionHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export function createSelectionHelper(
5858
);
5959
add(cleanup);
6060
}
61-
if (helper.type === "Single" && config.autoSelect) {
61+
if (helper.type !== null && config.autoSelect) {
6262
const dispose = autorun(
6363
() => {
6464
const { datasource } = gate.props;

0 commit comments

Comments
 (0)