ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: Scroll is lost with collection-repeat

Open mica16 opened this issue 11 years ago • 5 comments

Type: bug

Platform: all

Let's suppose a tab presenting the view MyList: a list of item using a collection-repeat. Click on an item, its detail is shown. Now, go back and...cool the scroll has kept the position ! Everything Ok, since MyList is a cached view .

Now this scenario: Click on an item, and in its detail page, open a modal (assuming there's button/link opening a modal). Now, close the modal and go back to the list (through the back button too). Wow! The scroll has lost the previous position, it's at the top ! => issue

It doesn't happen when using classic ng-repeat.

Here's a codepen: http://codepen.io/mica16/pen/EaygJa?editors=101

mica16 avatar Jan 05 '15 10:01 mica16

I have this exact same problem. Please fix! thank you

tariq7 avatar Jan 07 '15 13:01 tariq7

It doesn't need to be a modal, even showing keyboard causes the same issue.

fafk avatar Feb 11 '15 08:02 fafk

This issue is fixed in the v1.0.0-beta.14-nightly-1011 or newer, was fixed from this issue #2935

@fafk I suggest you to try again with the last beta, if it still happen, create another issue with this and include a codepen and describe how to simulate the problem :D

felquis avatar Feb 11 '15 15:02 felquis

Indeed, tried it and I confirm it's fixed ! Well done ;)

mica16 avatar Feb 13 '15 14:02 mica16

Fixed .

ajoslin avatar Feb 24 '15 20:02 ajoslin