Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

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

Merged
liamdebeasi merged 6 commits intomasterionic-team/ionic-framework:masterfrom
fix-item-sliding-openionic-team/ionic-framework:fix-item-sliding-openCopy head branch name to clipboard
Feb 28, 2019
Merged

fix(item-sliding): no longer closes all open items when deleting and item#17579
liamdebeasi merged 6 commits intomasterionic-team/ionic-framework:masterfrom
fix-item-sliding-openionic-team/ionic-framework:fix-item-sliding-openCopy head branch name to clipboard

Conversation

@liamdebeasi
Copy link
Contributor

@liamdebeasi liamdebeasi commented Feb 22, 2019

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.