Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #7417 #14947

Closed
wants to merge 1 commit into from
Closed

Fix #7417 #14947

wants to merge 1 commit into from

Conversation

iva2k
Copy link

@iva2k iva2k commented Jul 31, 2018

Short description of what this resolves:

Fixes disappearing menuToggle when hideBackButton is true or swipeBackEnable is false.

Changes proposed in this pull request:

  • Match the code to the intent described in the comment

Ionic Version: 3.x

Fixes: #7417

Details:

Use of Array.some() with the given filter function is not achieving the goal stated in the comment, filter returns "true" on self, contradicting the stated purpose. That results in menu getting disabled even in a single menu configuration, while the intent is to find x>1, while Array.some() finds x>=1.

The fix is to either exclude self from consideration (that is a bit convoluted change to either filter function or the Array), or convert !Array.some() to Array.filter().length < 2 in proposed fix.

Bug in the code was introduced by ff24152

However, the issue seems to be conditional on CSS being applied for "back button" removal, entangling it with hideBackButton and [swipeBackEnabled]="false". Another way to "fix the issue" is remove hideBackButton or [swipeBackEnabled]="false", but it only masks the bug.

@ionitron-bot ionitron-bot bot added the v3 label Jul 31, 2018
@iva2k iva2k mentioned this pull request Jul 31, 2018
@ionitron-bot
Copy link

ionitron-bot bot commented Oct 18, 2018

Screenshot Report 🔎📱

No comparison data found!


💙 - Ionitron

@mhartington
Copy link
Contributor

Hi there! We're going to be closing this as the repo is now organized for V4. For V3 related issues/PRs, please direct them here

https://github.com/ionic-team/ionic-v3

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants