keepAlive does not work continuously
midoushitongtong opened this issue · 5 comments
midoushitongtong commented
michaeltintiuc commented
I'd be interested in seeing your code, haven't seen this in a while. I don't think this happens in ionic-vue-examples
midoushitongtong commented
I'd be interested in seeing your code, haven't seen this in a while. I don't think this happens in
ionic-vue-examples
codesandbox url https://codesandbox.io/s/snowy-hooks-dkui7
Could it be that my usage is incorrect?
michaeltintiuc commented
No, it's not you, I could reproduce the issue, looks like it's something new, looking into it, thanks!
michaeltintiuc commented
OK, found the issue to be keep-alive itself and how newer versions of ionic are hiding the "leaving element":
- When you transition for the first time, the entering element (page B) is set to a visible state and higher z-index
- When you go back, page B becomes a leaving element and is being hidden with
display: nonestyle attr. - When you want to go to page B again, keep-alive restores it's previous state of a "leaving element" with it's display set to none.
Will implement a fix and release a new version ASAP, thanks for reporting this.
michaeltintiuc commented
Check version 1.3.6 @midoushitongtong
