I have a repeating group and a details view on the same page, similar to a list of recipes and the details of a selected recipe. By default, the details view is hidden and only becomes visible when an item from the repeating group is clicked. However, due to both views sharing the same page, scrolling becomes tricky when transitioning between the two. The scroll position isn’t consistent when moving back and forth between the list and the details. I’m looking for suggestions on how to improve this scrolling behavior. Could anyone help?
I currently store the scrolling position before changing view and use javascript to scroll back when the view is changed back to the repeating group, but that creates a weird jump when you transition back.