I built a button, when you click on it it displays two groups and when you click on it again it hides them. I didn’t use the “toggle” action because I have similar buttons that share one of the two groups so instead I used “show” and “hide” actions (and one condition).
When i click on the button to hide the two groups, my page automatically scrolls to the top, which is really annoying. I noticed that by removing one “hide” action in the workflow (hide group whats happening), it doesn’t scroll to the top.
I really don’t understand what is triggering this…
Has anyone ever had such problem ?
EDIT : it looks like these guys had the same problems years ago but no replies.
I don’t see any buttons in the screen shots so not sure about the reference.
Perhaps try it and uncheck the setting to collapse height when hidden on the two groups and see if it still triggers the scroll…if it doesn’t than the collapse height would be the issue…if it still triggers the scroll then it is not the issue and you could focus the investigation of the cause on something else, like perhaps a workflow that is scroll to element.
Uncheck the collapse height and let me know if it stops the scroll
So the problem was coming from the fact that for one button I had two workflows : one " button is clicked and X is visible" and “button is clicked and X isn’t visible” but I had forgotten the “X isn’t visible” in the condition, so two workflows would run doing exactly opposite things, which, I think, confused the browser and triggered this scrolling to top!!