- Issue created by @Anybody
- Assigned to Anybody
- 🇩🇪Germany Anybody Porta Westfalica
Reading the documentation at https://get.foundation/sites/docs/accordion.html#js-options I'd expect that it doesn't scroll if data-deep-link(-smudge) is disabled, but it scrolls. Will have a deeper look now, what's wrong.
- Assigned to thomas.frobieter
- 🇩🇪Germany Anybody Porta Westfalica
@thomas.frobieter I have no idea. The links have
data-smooth-scroll
set, which might be the reason why this happens?
See https://get.foundation/sites/docs/smooth-scroll.htmlIn the foundation demos this attribute is not present: https://get.foundation/sites/docs/accordion.html#deeplink1
But I can't find that attribute in the code of this module anywhere:
https://git.drupalcode.org/search?search=data-smooth-scroll&nav_source=n...Any ideas?
- 🇩🇪Germany Anybody Porta Westfalica
Having a look at the click event of the accordion header, smooth scroll indeed seems to be the reason, but still unclear, why and where that attribute is set.
- 🇩🇪Germany Anybody Porta Westfalica
@thomas.frobieter I found the reason: It's not in this module but in theme:
drowl_base.anchor_handling.jsvar $smoothScrollTriggers = $( 'a[href^="#"]:not([href="#"]):not([role="tab"]):not(.no-smooth):not([target="_blank"])', );
- Status changed to Closed: works as designed
about 2 years ago 11:57am 21 March 2023 - 🇩🇪Germany Anybody Porta Westfalica
Resolution: https://gitlab.com/webksde-public/drupal/drowl-base-theme/-/issues/35
Closing this one.