Do not try to set focus to <td> without child

Closes #13394
This commit is contained in:
Cédric Krier committed 2024-07-09 10:18:30 +02:00
1 parent 29291130fc
commit 2144389096
1 file changed
+4 -1
+4 -1
View File
@@ -1342,7 +1342,10 @@
if (this.editable && new_) {
td.trigger('click');
}
Sao.common.find_focusable_child(td).focus();
var child = Sao.common.find_focusable_child(td);
if (child) {
child.focus();
}
}
}
};