squareetlabs / ionic-rating-component

A component for rating in Ionic 5. Show evaluation. A quick rating operation on something.
Other
4 stars 21 forks source link

Unable to set 0 as rating value #9

Open Pumayk26 opened 3 years ago

Pumayk26 commented 3 years ago

When I tried to apply 0 as rating value (in this case all stars must be outline style not filled) by default it assign 3. I saw in the code checking rating value as this.rating || 3. So when I set the value as 0 it will auto assign 3 instead. Anyone else had this issue or it's just me.?

dfox288 commented 2 years ago

I was able to circumvent this issue by setting rating to 0.1 ;-)

zavovi commented 1 year ago

I have same problem. I want to set default = 0, because my form can by send with empty rating.