Help? Accordion tabs are broken for me

Posted 3 years, 8 months ago by vantas

; v ;)/) hi all, very sorry in advance if this is the wrong forum, i'm guessing this counts as a bug?

basically, opening an accordion tab sends me back to the top of the page:

GIF2.gif

to clarify, that's me manually scrolling down, but the accordion tabs ("about, appearance, quirk") are scrolling me back up upon expanding them, and it's not just this specific page/code, it's any coding that contains accordion tabs. i'm using my own code for simplicity's sake, you can see it here though idk if it'llĀ help.

more information: i switched PCs at the end of june and this has been happening ever since, and i'm using google chrome.
i've tried:

  • editing the code in every possible way, e.g. removing or changing the href tag (breaks the code, obviously)
  • same page on a laptop with google chrome and on mobile/safari (no issue)
  • same page on two different browsers on the same pc, to mixed results (opera works fine, microsoft edge does the same thing? not sure why)
  • clearing chrome cache, history, etc (issue persists)
  • uninstalling and reinstalling chrome (issue persists)
  • ...turning the computer on and off again and switching toyhouse accounts (unsurprisingly, issue persists)

i am TOTALLY lost, i genuinely thought reinstalling chrome would fix it. is there a solution or am i stuck with this? :(

Pepperly

I noticed last evening while messing with a profile that mine did the same thing. I run a fork of chromium (google chrome is a fork as well), so I'm not sure if it effects non-chromiums or not. Feels like they're triggering anchor behavior, for some reason. Not sure if it's a chromium bug, a coding bug, or a bootstrap bug.

Edit: now it's ok??? I don't know

vantas

still haven't managed to find a fix for it. in the mean time i've tried firefox which seemed to eliminate the problem as well, so idk :( think i'll just have to live with it.

vantas

update, i managed to get the code to work and not have the scrolling issue! my theory is that it has something to do with the href= bit of the <a> toggle, considering i removed that and the aria controls (no clue what those do) and it seemed to work like a charm.

i'm leaving this thread open in case anyone else has had this issue but for the most part my issue is solved (or at least worked around.)