Skip to content

Commit 2bb4b11

Browse files
committed
optimize code
1 parent 29a376c commit 2bb4b11

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/uui-table/lib/uui-table-row.element.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,13 @@ export class UUITableRowElement extends SelectOnlyMixin(
5656
private updateChildSelectOnly() {
5757
if (this.slotCellNodes) {
5858
this.slotCellNodes.forEach(el => {
59-
if (this.elementIsTableCell(el)) {
59+
if (el instanceof UUITableCellElement) {
6060
el.disableChildInteraction = this.selectOnly;
6161
}
6262
});
6363
}
6464
}
6565

66-
private elementIsTableCell(element: unknown): element is UUITableCellElement {
67-
return element instanceof UUITableCellElement;
68-
}
69-
7066
render() {
7167
return html` <slot @slotchanged=${this.updateChildSelectOnly}></slot> `;
7268
}

0 commit comments

Comments
 (0)