pds-dev-kit-web-test 2.5.120 → 2.5.122
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -166,10 +166,8 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
166
166
|
}
|
167
167
|
// esc
|
168
168
|
if (shortcutKeyMode === 'MANUAL_BULK_BREAK') {
|
169
|
-
if (selectedBlockId) {
|
170
|
-
|
171
|
-
setSelectedBlockId(null);
|
172
|
-
}
|
169
|
+
if (selectedBlockId && editingGroupBlock !== 'ROOT') {
|
170
|
+
setSelectedBlockId(null);
|
173
171
|
sectionActionHandler &&
|
174
172
|
sectionActionHandler({
|
175
173
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -187,9 +185,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
187
185
|
}
|
188
186
|
if (bulkBlockIds.length > 0) {
|
189
187
|
setBulkBlockIds([]);
|
190
|
-
|
191
|
-
setSelectedBlockId(null);
|
192
|
-
}
|
188
|
+
setSelectedBlockId(null);
|
193
189
|
sectionActionHandler &&
|
194
190
|
sectionActionHandler({
|
195
191
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -217,6 +213,17 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
217
213
|
});
|
218
214
|
return;
|
219
215
|
}
|
216
|
+
if (editingGroupBlock === 'ROOT') {
|
217
|
+
setSelectedBlockId(null);
|
218
|
+
sectionActionHandler &&
|
219
|
+
sectionActionHandler({
|
220
|
+
type: '@CUSTOMSECTION/BULK_DISMISSED',
|
221
|
+
payload: {
|
222
|
+
message: 'MANUAL_BULK_BREAK_OR_ESC',
|
223
|
+
editingGroupBlock: 'ROOT'
|
224
|
+
}
|
225
|
+
});
|
226
|
+
}
|
220
227
|
}
|
221
228
|
}, [shortcutKeyMode, setSelectedBlockId]);
|
222
229
|
(0, react_1.useLayoutEffect)(function () {
|