[Solved]jQuery collapse.bs.show method not working (Version:60.0.3255.70)
-
A Former User last edited by leocg
Hi,
I'm working on a website that uses the method collapse.bs.hide but Opera is not registering this action.
It works fine on latest Firefox, IE, Edge and Chrome, only Opera is failing on this part. -
A Former User last edited by
Very simple.
Go to http://windows.power2all.com:8000/
Click on Category & Search, and when you drop-down on the right a category name, and close the Category & Search, that one should automatically close as well.
It doesn't, but if you check on for example Chrome or Firefox, this behavior works fine.URL is active for now, as I am still developing.
-
burnout426 Volunteer last edited by burnout426
@Power2All2 Thanks for the testcase. In both Chrome and Opera (60 and 61 on Windows 10 Pro), I click on "Category & Search", click on "Pictures" and then click on "Category & Search" again and they both close just fine.
-
A Former User last edited by
That is interesting, as I tested it both on my work PC with Opera 60 and on my home PC, also both Win 10 Pro.
I wonder then what the difference is, but it feels like something is wrong though.
Also, I noticed the javascript is being handled differently on Opera, then on Chrome (Chrome my background changer doesn't echo any zero'd arrays, where as Opera does, see the console log).I added a screentogif how it should not work.
-
burnout426 Volunteer last edited by burnout426
@Power2All said in jQuery collapse.bs.show method not working (Version:60.0.3255.70):
I added a screentogif how it should not work.
That's how it works in Chrome, Firefox and Opera for me. Can you post a pic of how it should work? Maybe I'm just not getting what you're saying.
-
A Former User last edited by A Former User
@burnout426 said in jQuery collapse.bs.show method not working (Version:60.0.3255.70):
I think I see what you're saying now. Sorry. Hold on.
-
burnout426 Volunteer last edited by
Okay, here's what I see. In Firefox and Opera, closing the parent "Category & Search" menu also closes the submenu. As in, when you open up the Category & Search menu again, the submenu is no longer open. This is the behavior you want.
However, in Chrome and Vivaldi, the submenu does not close. As in, when I open up the "Category & Search menu again, the submenu is still open from the last time.
-
A Former User last edited by A Former User
@burnout426 said in jQuery collapse.bs.show method not working (Version:60.0.3255.70):
Okay, here's what I see. In Firefox and Opera, closing the parent "Category & Search" menu also closes the submenu. As in, when you open up the Category & Search menu again, the submenu is no longer open. This is the behavior you want.
However, in Chrome and Vivaldi, the submenu does not close. As in, when I open up the "Category & Search menu again, the submenu is still open from the last time.
This is in Chrome 73, also checked in Chrome 74 after updating.
So I wonder how it is not working on your Chrome, when it is working on my Chrome.
MS Edge it works the same as all others as well, except Opera is showing a wrong behavior. -
burnout426 Volunteer last edited by burnout426
@Power2All said in jQuery collapse.bs.show method not working (Version:60.0.3255.70):
So I wonder how it is not working on your Chrome, when it is working on my Chrome.
ublock Origin causes the problem in Chrome. I had it disabled for the page, but had to disable the extension all the way to make it work in Chrome.
Edit: Same reason why Vivaldi wasn't working.
-
burnout426 Volunteer last edited by
So, sorry for the mixups above. Everything is working as expected in Firefox, Chrome, Vivaldi and Opera for me. Do you have any extensions in your Opera that might be interfering?
-
A Former User last edited by
@burnout426 said in jQuery collapse.bs.show method not working (Version:60.0.3255.70):
@Power2All said in jQuery collapse.bs.show method not working (Version:60.0.3255.70):
So I wonder how it is not working on your Chrome, when it is working on my Chrome.
ublock Origin causes the problem in Chrome. I had it disabled for the page, but had to disable the extension all the way to make it work in Chrome.
Edit: Same reason why Vivaldi wasn't working.
Awkward, you're right.
Even when uBlock is "disabled" it still is affecting the website.
I need to completely disable the add-on to make the function work.
I'll send a bug report to the uBlock guys, Thanks ! -
burnout426 Volunteer last edited by
@Power2All said in jQuery collapse.bs.show method not working (Version:60.0.3255.70):
I'll send a bug report to the uBlock guys,
Let us know how it goes, please. (Mod, please keeps this thread open)
-
A Former User last edited by
@burnout426 said in jQuery collapse.bs.show method not working (Version:60.0.3255.70):
@Power2All said in jQuery collapse.bs.show method not working (Version:60.0.3255.70):
I'll send a bug report to the uBlock guys,
Let us know how it goes, please. (Mod, please keeps this thread open)
Issue has been submitted here:
-
A Former User last edited by A Former User
Issue can be closed.
It was uBlock and adBlock after all.
Used a other way to determine if the page is loaded, cause the former one I used seem to be blocked by them.For future reference, this is the correct way to see if a webpage is loaded:
$(document).ready(function() { -- code here -- });
The one I used (window.onload()) is being blocked by the extensions.