pds-dev-kit-web-test 2.5.298 → 2.5.299
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.
@@ -1003,6 +1003,8 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
1003
1003
|
innerRef.current.setAttribute('data-section-id', props.id.toString());
|
1004
1004
|
}
|
1005
1005
|
}, []);
|
1006
|
+
var editableCBIDs = (0, group_1.findDirectChildrenCbIds)(newblock, editingGroupBlock);
|
1007
|
+
console.log('editableCBIDs', editableCBIDs);
|
1006
1008
|
return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsxs)(gleStyles_1.S_gleStyles, __assign({ isBulkMode: shortcutKeyMode === 'BULK_SELECT' }, { children: [showSectionHiddenCover && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), (0, jsx_runtime_1.jsx)(S_SectionWrapper, __assign({ ref: gleRef, "x-dlayout-section-type": "NO_NAME", onClick: onClickSection, onContextMenu: function (e) {
|
1007
1009
|
e.stopPropagation();
|
1008
1010
|
e.preventDefault();
|
@@ -1038,7 +1040,8 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
1038
1040
|
}, onClick: function (e) {
|
1039
1041
|
e.stopPropagation();
|
1040
1042
|
if (editingGroupBlock !== 'ROOT') {
|
1041
|
-
if (
|
1043
|
+
if (!editableCBIDs.includes(matchedCB.id)) {
|
1044
|
+
e.preventDefault();
|
1042
1045
|
return;
|
1043
1046
|
}
|
1044
1047
|
}
|