Topic-icon SCLogin drop down user menu won't show on Joomla 4

I am currently having issues with the drop down usermenu on Joomla 4 when using the YooTheme Pro template.  The button is there but the drop down user menu does not show when it is clicked.  I have tried enabling disabling JQuery but that doesn't do anything.  I have even tried enbling and disbaling bootstrap and JQuery from within YooTheme Pro.  I can't seem to find a combination that works.

The same website on Joomla 3 works fine.  It only is an issue on Joomla 4.

Joomla 4.0.3
SCLogin 9.0.170
PHP 8.0.11
The topic has been locked.
Support Specialist
2 years 6 months ago - 2 years 6 months ago #67508 by mel
This is going to require a code change. In /modules/mod_sclogin/helper.php

1) Line 774 add 2 lines of code to the top of the "else //Show in Bootstrap dropdown list" block
else //Show in Bootstrap dropdown list
{
if (JVERSION >= 4.0) // <-- add this
   HTMLHelper::_('bootstrap.dropdown', 'dropdown'); // <-- add this
...

2) Line 780 change to
$menuNav .= '<a class="btn dropdown-toggle" data-bs-toggle="dropdown" data-toggle="dropdown" href="#" role="button">' . $parentTitle . '</a>';

This code fixes the problem on my local dev site, but I need to run more tests to make sure it doesn't break Joomla3.

-Melissa
Last edit: 2 years 6 months ago by mel.
The topic has been locked.
2 years 6 months ago #67509 by vanboke
Thank you! Those edits did the trick!

If you need me to test anything else for you given this fix, on Joomla 3 or 4, just let me know. I manage sites on both versions at the moment.

Thanks again for your help!
The topic has been locked.
Support Specialist
2 years 6 months ago #67510 by mel
No problem. I've got multiple sites going as well for development.

After some more testing, these changes will be checked in for the next bug fix release. I've been trying to get out a bug fix release every week or so to try and make this stable quickly for everyone.

Let us know if you run into any other odd behavior.

-Melissa
The topic has been locked.