mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 03:48:23 +00:00
What is the problem? This is a follow up to 4cca7de22dda2bfa0939c75fb4fe405a93c0a87d. In the commit, CSS was used to disable the collapsing of sections in the header dropdown navigation menu when the `navigation_menu` site setting is set to `header dropdown`. However, using CSS is not the correct approach as the underlying code is still marking the section as collapsable which means that the sections will still be displayed as collapsed with no way to "uncollapse" if the local store has already marked the section as collapsed. What is the fix? This commit removes the usage of CSS to hide the collapsabe button and instead correctly marks the section as not collapsable in the code.