fix(Tables): Check if element.parentNode is null (#681)

Happened on the recent changes table. While the added line in TableNowrapClasses also fixes this, I've left it in as a safeguard.
This commit is contained in:
H. C. Kruse 2023-07-03 14:48:15 +02:00 committed by GitHub
parent 1cd993c664
commit a1139e7797
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -38,6 +38,10 @@ function setupOverflowState( element ) {
}
};
if ( element.parentNode === null ) {
return;
}
updateState();
// Update state on element scroll

View file

@ -627,6 +627,7 @@
"value": [
"citizen-table-nowrap",
"mw-changeslist-line",
"mw-recentchanges-table",
"infobox",
"cargoDynamicTable",
"dataTable"