Topic-icon SCLogin drop down user menu won't close on Joomla 4 upon opening

Active Subscriptions:

None
Hello dear support, I have an issue with SCLogin when I click on dropdown user menu, menu opens but it wont close upon clicking outside of it.
I am using T4 framework based template if it helps.
Tried with toogling options regarding ajax loading but it does not help.

On cassiopea template it wont even open dropdown.

What can I provide in order for you to sugest solution?


Thank you!
The topic has been locked.
Support Specialist
2 years 6 months ago - 2 years 6 months ago #67514 by mel
From your title and if you're using Cassieopeia, then that sounds like Joomla 4? But I see that you've run Autotune on a 3.10.x site. Asking so that I can try to reproduce it on my appropriate test site.

For the Cassiopeia template, can you try the code change I provided in this thread and see if it resolves the issue? This should fix the dropdown not appearing in J4.
www.sourcecoast.com/forums/sclogin-enhan...n-t-show-on-joomla-4

Also, after the code change, will you re-check the close behavior. When I open the dropdown, I'm able to click out and have it close properly.

-Melissa
Last edit: 2 years 6 months ago by mel.
The following user(s) said Thank You: CyrusXxX
The topic has been locked.
Active Subscriptions:

None
2 years 6 months ago - 2 years 6 months ago #67515 by CyrusXxX
Hello Mell, yes I switched to joomla 4 in the meanwhile. To early to run autotune as this is on localhost but I have completed it if it will help you :)

Regarding your suggestion I have tried already but with no hope as that is different issue so to speak. Hiss issue is that his dropdown wont open upon click. Mine is that it stays open until I refresh the page. Result was that after applying code from that topic dropdown disappears completely so I reverted back.

Thank you!
Last edit: 2 years 6 months ago by CyrusXxX.
The topic has been locked.
Support Specialist
Thanks for your details. The issue is most likely from some conflict with the T4 template you're using, but it's very difficult for us to diagnose without being able to see the problem in action.

Is there any way you can put your Joomla 4 site on an accessible development site somewhere? Once we see the problem in action, we likely can diagnose and resolve the (likely) javascript issue pretty quickly.

Thanks,
Alex
The following user(s) said Thank You: CyrusXxX
The topic has been locked.
Active Subscriptions:

None
2 years 6 months ago - 2 years 6 months ago #67517 by CyrusXxX
Hello Alex, will do where do you want me to send you login details?
Can you give me some email adress?
Last edit: 2 years 6 months ago by CyrusXxX.
The topic has been locked.
Support Specialist
You can send the credentials in our Contact Us form at www.sourcecoast.com/contact-us/.
The following user(s) said Thank You: CyrusXxX
The topic has been locked.
Active Subscriptions:

None
It is done Mel.
The topic has been locked.
Support Specialist
Thank you for the credentials.

I installed a build of SCLogin with the changes from the other thread that I mentioned. After installing that version, the behavior was the same as 9.0.170 experiences - opening the menu works fine, closing does not.

It seems to be a conflict between your template and either Joomla 4 or Bootstrap not working well together for showing/hiding dropdowns. The core issue is that the show class is not getting added to the dropdown properly.

If you inspect the source on your page, your template loads the following javascript file which removes and toggles the show class.
/plugins/system/t4/themes/base/js/base.js?a4cdfc34950a35aa644a97291f20d273

In that javascript code, there's a block around the following statement:
// fix for multilevel dropdown
If you comment out that block of code, the opening and closing of the user menu appears to work correctly.

So 1) has the template been tested with Joomla 4? 2) You can try to comment out the block of javascript, but we don't know what other effects will occur in your page behavior.

-Melissa
The following user(s) said Thank You: CyrusXxX
The topic has been locked.
Active Subscriptions:

None
Hello Melissa,
first of all thank you for identifying culprit I have taken time and played with t4 framework and that code snippet is indeed the issue. That code is responsible for dropdown display on offcanvas menu, and commenting one line of code in there resolved the issue without issues on website itself. Culprit is t4 framework plugin version 2.0.6 I have written to joomlart to address this.


Thank you for helping me solve this.
With regards, Goran.
The topic has been locked.
Support Specialist
Not a problem. We want to get our extensions as stable as possible as soon as we can for Joomla 4. Glad we could help narrow down your issue.

-Melissa
The topic has been locked.