Modal.hide() scrolls the collection-repeat behind it to the top

I have a modal box with a ‘close’ button on it. It calls the modal.hide() method.

Whenever a user clicks the button, the modal closes, but the list of items behind it suddenly scrolls to the top…

Any help would be appreciated.

The Problem is, that the default behavior of the header/nav-bar is, that if you click it the scroll-container scrolls to top. but it is a bug, if the wrong scroll-view gets scrolled top.

A workaround add the following attribute to the ion-header-bars:
no-tap-scroll=“true”

http://ionicframework.com/docs/api/directive/ionHeaderBar/

1 Like

I looked everywhere for this answer. Thank you for your help!