View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
20284Bug reportsQuestion themepublic2025-10-09 19:54
Reporternonformality Assigned To 
PrioritynoneSeveritypartial_block 
Status newResolutionopen 
Product Version6.6.x 
Summary20284: Clicking on tooltips forces scroll to top
Description

We use tooltips across our surveys to explain terms that respondents might not easily understand. Currently, when responding to the surveys on a touchscreen device, the tooltips show an erronous behaviour: when a term is being clicked to see the tooltip, the page scrolls to the top automatically.

I have verified that we use the correct tooltip syntax as per bootstrap 5.x:

<code><a href="#" data-bs-toggle="tooltip" data-bs-title="Default tooltip">inline links</a></code>

Steps To Reproduce

Steps to reproduce

Go to https://surveys.researchyouth.net/test-hr?lang=en on a mobile device. On the bottom of the start page, click next. On the first screen with questions, the second question has some tooltips where you can verify the problem.

Expected result

When clicking on a word to see the tooltip, the tooltip should appear, and nothing else should happen.

Actual result

When clicking on a word to see the tooltip, the tooltip appears AND the page scrolls to the top. The pink tooltip for mentors has a different syntax to narrow down the problem, it uses a span element. Here, no topscroll occurs.

Tagsscrolling, tooltip
Attached Files
lime.gif (5,889,279 bytes)
Bug heat4
Complete LimeSurvey version number (& build)Version 6.15.15+250929
I will donate to the project if issue is resolvedNo
BrowserSafari, Chrome
Database type & versionmysqlnd 8.4.11, 11.8.3-MariaDB
Server OS (if known)Debian Trixie
Webserver software & version (if known)Apache/2.4.65
PHP Version8.4.11

Users monitoring this issue

There are no users monitoring this issue.

Activities

nonformality

nonformality

2025-10-04 17:23

reporter   ~83533

Also verified that the scroll-to-top erroneous behaviour is theme-independent: happens in all themes.

DenisChenu

DenisChenu

2025-10-05 15:27

developer   ~83534

BS 5 use button for tooltips https://getbootstrap.com/docs/5.3/components/tooltips/#enable-tooltips

Remove href="#" and add index=0

No Limesurvey related

DenisChenu

DenisChenu

2025-10-05 15:29

developer   ~83535

And code for the link came from Specific demo part.

nonformality

nonformality

2025-10-05 15:40

reporter   ~83536

Denis, where do you see that BS5 uses buttons only for tooltips? The site you link to has a section with tooltips on links, which is what we have used so far and would like to keep using. We use the same approach in many other sites that do not use LimeSurvey, and none of them scrolls to the top…

DenisChenu

DenisChenu

2025-10-06 09:46

developer   ~83537

https://getbootstrap.com/docs/5.3/components/tooltips/#custom-tooltips

For tooltips on link :

view-source:https://getbootstrap.com/docs/5.3/components/tooltips/#custom-tooltips

nonformality

nonformality

2025-10-09 19:54

reporter   ~83577

It looks like Bootstrap is suppressing the scroll to top with a script. Is that script also integrated in LimeSurvey and can simply be called?

nonformality

nonformality

2025-10-09 19:54

reporter   ~83578

Screenshot of the script

Issue History

Date Modified Username Field Change
2025-10-04 16:16 nonformality New Issue
2025-10-04 16:16 nonformality File Added: lime.gif
2025-10-04 16:19 nonformality Tag Attached: tooltip
2025-10-04 16:19 nonformality Tag Attached: scrolling
2025-10-04 17:23 nonformality Note Added: 83533
2025-10-04 17:23 nonformality Bug heat 0 => 2
2025-10-05 15:27 DenisChenu Note Added: 83534
2025-10-05 15:27 DenisChenu Bug heat 2 => 4
2025-10-05 15:29 DenisChenu Note Added: 83535
2025-10-05 15:40 nonformality Note Added: 83536
2025-10-06 09:46 DenisChenu Note Added: 83537
2025-10-06 09:46 DenisChenu File Added: Capture d’écran du 2025-10-06 09-45-18.png
2025-10-09 19:54 nonformality Note Added: 83577
2025-10-09 19:54 nonformality Note Added: 83578
2025-10-09 19:54 nonformality File Added: Screenshot 2025-10-09 at 19.52.45.png