pds-dev-kit-web-test 2.5.202 → 2.5.203
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.
@@ -107,13 +107,15 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
107
107
|
(0, react_1.useImperativeHandle)(ref, function () {
|
108
108
|
return {
|
109
109
|
selectCB: function (blockId) {
|
110
|
-
var _a;
|
111
110
|
setSelectedBlockId(blockId);
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
block
|
116
|
-
|
111
|
+
var block = document.querySelector("div[data-grid-id=\"".concat(blockId.replace('CB_', ''), "\"]"));
|
112
|
+
console.log(block, 'id ,', "".concat(blockId.replace('CB_', '')));
|
113
|
+
if (block) {
|
114
|
+
block.scrollIntoView({
|
115
|
+
behavior: 'smooth',
|
116
|
+
block: 'center'
|
117
|
+
});
|
118
|
+
}
|
117
119
|
},
|
118
120
|
selectCBInBulk: function (blockIds) {
|
119
121
|
setBulkBlockIds(blockIds);
|