diff --git a/config/current.ver b/config/current.ver index 3b712a9..936048d 100644 --- a/config/current.ver +++ b/config/current.ver @@ -1 +1 @@ -1.2.81 \ No newline at end of file +1.2.82 \ No newline at end of file diff --git a/public/assets/js/bridge/table-builder.js b/public/assets/js/bridge/table-builder.js index 3768121..a88f16e 100644 --- a/public/assets/js/bridge/table-builder.js +++ b/public/assets/js/bridge/table-builder.js @@ -222,6 +222,19 @@ } editor.on('component:selected', (model) => { + if (!model) return; + if (model.get && model.get('tagName') === 'tr') { + const parent = model.parent && model.parent(); + const table = parent && (parent.get && parent.get('tagName') === 'table' ? parent : parent.parent && parent.parent()); + if (isBridgeTableComponent(table)) { + const cells = model.components && model.components(); + const firstCell = cells && cells.length ? cells.at(0) : null; + if (firstCell) { + editor.select(firstCell); + return; + } + } + } if (isBridgeTableComponent(model)) { model.set && model.set({ selectable: true,