This commit is contained in:
2026-02-09 00:29:58 +01:00
parent 84e284d65a
commit 3c48b25778
2 changed files with 14 additions and 1 deletions

View File

@@ -1 +1 @@
1.2.81 1.2.82

View File

@@ -222,6 +222,19 @@
} }
editor.on('component:selected', (model) => { 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)) { if (isBridgeTableComponent(model)) {
model.set && model.set({ model.set && model.set({
selectable: true, selectable: true,