You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi mediaessenz
I can confirm this bug and think that your fix is great. Thanks for your work. Hope that it will be implemented in the next release.
Best regards Danaron
Bug Report
Description
Smooth scroll JS of version bootstrap_package v13.0.1 prevents hrefs with hash to work properly in some cases.
Steps to Reproduce
Expected behavior
Load the page of the link target and scroll to the selected content element.
Actual behavior
The link is not working
Versions
bootstrap_package 13.0.1
TYPO3 11.5.25
PHP 8.1
Fix
The reason is the JS css selector who attaches an eventlistener containing a preventDefault command.
This prevents the link from working.
The current selector looks like this:
and should be changed to:
Additional the following code uses some old dataset properties:
Since bootstrap 5 all data attributes got a bs-prefix. So this code part should be changed to:
Since this condition could also be prevent by adding it to the selector, the whole js could look like this:
The text was updated successfully, but these errors were encountered: