Skip to content

Commit 22de342

Browse files
danilsomsikovDevtools-frontend LUCI CQ
authored andcommitted
[datagrid] Fix propagation of text content updates
Bug: 402076495 Change-Id: Id73f0b8172b23f7238f99e5193ec067c673fa5d3 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6345655 Commit-Queue: Ken Okada <[email protected]> Reviewed-by: Ken Okada <[email protected]> Commit-Queue: Danil Somsikov <[email protected]> Auto-Submit: Danil Somsikov <[email protected]>
1 parent 9b81de9 commit 22de342

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

front_end/ui/legacy/components/data_grid/DataGridElement.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,9 @@ class DataGridElement extends HTMLElement {
281281
}
282282

283283
#updateNode(node: Node, attributeName: string|null): void {
284+
while (node?.parentNode && !(node instanceof HTMLElement)) {
285+
node = node.parentNode;
286+
}
284287
const dataRow = node instanceof HTMLElement ? node.closest('tr') : null;
285288
const dataGridNode = dataRow ? DataGridElementNode.get(dataRow) : null;
286289
if (dataGridNode && dataRow) {

0 commit comments

Comments
 (0)