ProfessionalWiki / chameleon

Provides a highly flexible and customizable skin using Bootstrap 4
https://www.mediawiki.org/wiki/Skin:Chameleon
Other
114 stars 62 forks source link

getResourceLoaderModules() is ignored if Component is member of NavbarHorizontal #409

Open D-Groenewegen opened 9 months ago

D-Groenewegen commented 9 months ago

Hi, I've been trying out various custom components and noticed a bug with components that are nested within the horizontal navbar (type="NavbarHorizontal") in the XML layout. The HTML does get rendered without issues, but any modules added through getResourceLoaderModules() are ignored. The result remains the same for the following:

There seems to be a selection process in Structure.php that decides which subcomponents should be queried for module names. Is it possible that there should be something equivalent in NavbarHorizontal.php (which can then go on to use getResourceLoaderModules() )?