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

provide a toggle nullable feature when the user clicks on the same ra… #10

Merged
merged 3 commits into from
Feb 16, 2017
Merged

provide a toggle nullable feature when the user clicks on the same ra… #10

merged 3 commits into from
Feb 16, 2017

Conversation

erangeles
Copy link
Contributor

…ting again.

@erangeles
Copy link
Contributor Author

@andrucz thoughts?

@@ -94,9 +94,13 @@ export class Ionic2Rating implements ControlValueAccessor {
}

rate(amount: number) {
if (!this.readOnly && amount >= 0 && amount <= this.range.length) {
this.value = amount;
if(number == this.innerValue) {
Copy link
Owner

Choose a reason for hiding this comment

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

Do you mean amount == this.innerValue?

@andrucz
Copy link
Owner

andrucz commented Jan 27, 2017

That's an interesting feature. I am just wondering whether it should be activated by a property.

@andrucz
Copy link
Owner

andrucz commented Feb 16, 2017

I added nullable property (default value is false). Thanks.

@andrucz andrucz merged commit 6153368 into andrucz:master Feb 16, 2017
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