Board Thread:Support Requests - Getting Technical/@comment-2056915-20151125052532/@comment-4731443-20151125073830

As far as I can tell, Disney Wiki uses default behavior for collapsible elements. Your wiki, however, has custom JavaScript that is taking over that behavior: var autoCollapse = 2; var collapseCaption = "hide"; var expandCaption = "show"; function collapseTable( tableIndex ) {    var Button = document.getElementById( "collapseButton" + tableIndex ); var Table = document.getElementById( "collapsibleTable" + tableIndex ); if ( !Table || !Button ) { return false; }    var Rows = Table.getElementsByTagName( "tr" ); if ( Button.firstChild.data == collapseCaption ) { for ( var i = 1; i < Rows.length; i++ ) { Rows[i].style.display = "none"; }        Button.firstChild.data = expandCaption; } else { for ( var i = 1; i < Rows.length; i++ ) { Rows[i].style.display = Rows[0].style.display; }        Button.firstChild.data = collapseCaption; } } (Omitting the Show/Hide button generation as I doubt the bug is in there.)

Now, JavaScript isn't my strong suit, but as far as I can tell from looking at the source inspector,  selects all tr elements under the first table, including those within sub-tables. So when it toggles the display for the table's rows, it actually also displays all of its tables' rows.

I don't have a fix to suggest (other than not using this JavaScript since I don't see what it does that Wikia doesn't do by default), and I could be mistaken, but hopefully this will help someone else pick it up from here.