Open Gaetitan opened 4 years ago
Bug After updating the value of the
<star-rating>
component, ifreadonly
is set totrue
, the template does not display the new number of stars.Description
- Component
<star-rating [value]="myValue" [totalstars]="5" checkedcolor="#FF9800" uncheckedcolor="black" size="30px" readonly="true"></star-rating>
- Update
myValue
is updated to a new value.- Result Value of
<star-rating>
is updated but the rendering is not updated.Expected behavior The number of stars should be updated when the value of the component is updated.
I have also encountered same issue did you got any fix for this
if i set read only to true only shows empty stars
Hi @Electric-impala, Unfortunately, I did not find any fix for that.
I am experiencing this same bug with the use case of binding to the value property and where readonly is true.
Hi @samhrncir please follow the syntax mentioned below vairables may change <star-rating value="{{accommodation.stars}}" totalstars={{totalStar}} checkedcolor="#AD9865" uncheckedcolor="grey" size="18px" [readonly]="true">
same bug here, I can't fix it
Bug After updating the value of the
<star-rating>
component, ifreadonly
is set totrue
, the template does not display the new number of stars.Description
<star-rating [value]="myValue" [totalstars]="5" checkedcolor="#FF9800" uncheckedcolor="black" size="30px" readonly="true"></star-rating>
myValue
is updated to a new value.<star-rating>
is updated but the rendering is not updated.Expected behavior The number of stars should be updated when the value of the component is updated.