Skip to content

fix(item-sliding): no longer closes all open items when deleting and item - #17579

Merged
liamdebeasi merged 6 commits into
masterfrom
fix-item-sliding-open
Feb 28, 2019
Merged

liamdebeasi merged 6 commits into
masterfrom
fix-item-sliding-open

Conversation

@liamdebeasi

@liamdebeasi liamdebeasi commented Feb 22, 2019 •

Copy link
Copy Markdown
Contributor

Short description of what this resolves:

This PR fixes a corner case that was missed in #17492. The fix closed all open items, since that reset ; openSlidingItem however, it assumed that the open item was always going to be the item that was deleted, which is not necessarily correct. This PR now only resets the openSlidingItem variable if it is the item that is being deleted.

Changes proposed in this pull request:

  • Remove closeOpened call when componentDidUnload is fired
  • Check if openSlidingItem equals the element that was just removed. If it is, set openSlidingItem = undefined

Ionic Version:

Fixes: #17575

@liamdebeasi
liamdebeasi merged commit 3de7795 into master Feb 28, 2019
@liamdebeasi
liamdebeasi deleted the fix-item-sliding-open branch February 28, 2019 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants