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

Checking for existing displayedValue #147

Merged
merged 1 commit into from
Oct 25, 2019
Merged

Checking for existing displayedValue #147

merged 1 commit into from
Oct 25, 2019

Conversation

Wurm3
Copy link
Contributor

@Wurm3 Wurm3 commented Aug 28, 2019

I found this while trying to set the displayed value to zero. This will cause if @get('displayedValue') to evaluate to false. With adding a questionmark it will evaluate to true unless displayedValue is null or undefined.

Check if displayed value exist rather then if number evaluates to true. Enables the user to set the displayed value to zero.

Check if displayed value exist rather then if number evaluates to true. Enables the user to set the displayed value to zero.
Copy link
Member

@kinow kinow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sensible to me 👍 will merge it if no one objects here.

@kinow kinow merged commit 9ec10c8 into Smashing:master Oct 25, 2019
@kinow kinow added this to the 1.2 milestone May 16, 2020
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