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(show-hide-when): remove whitespaces from conditions before check … #9573

Merged
merged 1 commit into from
Jan 3, 2017

Conversation

russiann
Copy link

@russiann russiann commented Dec 9, 2016

When showWhen is used with whitespace like this...

<div showWhen="android, ios"></div>

... it doesn't work properly, the component just is not shown. This makes it difficult to debug and may cause misunderstandings because no error is reported (the developer may think that the problem may be elsewhere). And the whitespace may have been accidentally written by intuition.

So, to ensure this doesn't happen I just remove all whitespaces from conditions string before check phase. 😬

@brandyscarney brandyscarney self-assigned this Jan 3, 2017
@brandyscarney brandyscarney merged commit cd342c2 into ionic-team:master Jan 3, 2017
@brandyscarney
Copy link
Member

Thanks! Looks good. 👍

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