Skip to content

Commit

Permalink
fix(Tables): Check if element.parentNode is null (#681)
Browse files Browse the repository at this point in the history
Happened on the recent changes table. While the added line in TableNowrapClasses also fixes this, I've left it in as a safeguard.
  • Loading branch information
octfx committed Jul 3, 2023
1 parent 1cd993c commit a1139e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/skins.citizen.scripts/tables.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ function setupOverflowState( element ) {
}
};

if ( element.parentNode === null ) {
return;
}

updateState();

// Update state on element scroll
Expand Down
1 change: 1 addition & 0 deletions skin.json
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@
"value": [
"citizen-table-nowrap",
"mw-changeslist-line",
"mw-recentchanges-table",
"infobox",
"cargoDynamicTable",
"dataTable"
Expand Down

0 comments on commit a1139e7

Please sign in to comment.