Topic on Project:Support desk

Nested collapsible table shows wrong toggle state

5
162.255.236.20 (talkcontribs)

I am using MediaWiki version 1.31.1 with PHP 7.3 and MariaDB 5.5.60. I have a table definition such as:

Main Menu
General
Topic 1
Topic 2

Main Menu correctly shows [Expand] next to it. The problem is now if I expand "Main Menu", General is initially in a collapsed state, but the label next to General incorrectly shows [Collapse] when it should say [Expand]. Once General is expanded, the label correctly shows [Collapse]. Now if I click on General to collapse it, the label next to General now is in the correct toggle state and does show [Expand]. Toggling General back and forth works, until I collapse Main Menu and expand it again, and General incorrectly shows [Collapse] when it should show [Expand].

Anyone ever encounter this bug and know how to fix it?


Thank you.

Leaderboard (talkcontribs)

Can't reproduce this bug here. I expanded "Main Menu" and General still reads "Expand". Might have been fixed in MW 1.32/1.33 though, can't say.

AhmadF.Cheema (talkcontribs)

Yes, happening in v1.31.1. Not occurring in Wikimedia Wikis, so possibly fixed in v1.32 or v1.33.

162.255.236.20 (talkcontribs)

Thanks for your replies. I will try the upgrade to v1.32 and v1.33.


Forgot to also mention that I am running on RHEL 7.6 and this issue does not appear on v1.20.2 with PHP 5.3.3 and MySQL 5.1.73. The problem may also be due to other syntax errors on the main page, where there are also many other 2-level nested collapsible table definition menus. However, v1.20.2 works fine, just not v1.31.

Ciencia Al Poder (talkcontribs)

Check any custom scripts on your wiki, like MediaWiki:Common.js, MediaWiki:Monobook.js, etc in case you have any script that is trying to implement collapsible templates, causing it to trigger the actions twice

Reply to "Nested collapsible table shows wrong toggle state"