Skip to content

Commit 9dbe207

Browse files
fix(datagrid-web): update selection properties to include 'keepSelection' in hide logic
1 parent d216baf commit 9dbe207

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,12 @@ function hideSelectionProperties(defaultProperties: Properties, values: Datagrid
122122
const { itemSelection, itemSelectionMethod } = values;
123123

124124
if (itemSelection === "None") {
125-
hidePropertiesIn(defaultProperties, values, ["itemSelectionMethod", "itemSelectionMode", "onSelectionChange"]);
125+
hidePropertiesIn(defaultProperties, values, [
126+
"itemSelectionMethod",
127+
"itemSelectionMode",
128+
"onSelectionChange",
129+
"keepSelection"
130+
]);
126131
}
127132

128133
if (itemSelectionMethod === "checkbox") {
@@ -135,7 +140,6 @@ function hideSelectionProperties(defaultProperties: Properties, values: Datagrid
135140

136141
if (itemSelection !== "Multi") {
137142
hidePropertiesIn(defaultProperties, values, [
138-
"keepSelection",
139143
"selectionCounterPosition",
140144
"clearSelectionButtonLabel",
141145
"enableSelectAll"

0 commit comments

Comments
 (0)