Skip to content

Commit

Permalink
When readonly should not set stars to 0 (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonzalo Lorieto authored Nov 11, 2022
1 parent 0d3712b commit 0d78f65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ngx-stars.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="stars-line" (mouseleave)="readonly ? noop() : onStarsUnhover()" role="img" [attr.aria-label]="getAriaLabel()">
<span class="star zero-star" [ngStyle]="starSize()" aria-hidden="true" (click)="onZeroStarClick()" (mousemove)="readonly ? noop() : onZeroStarHover()"></span>
<span class="star zero-star" [ngStyle]="starSize()" aria-hidden="true" (click)="readonly ? noop() : onZeroStarClick()" (mousemove)="readonly ? noop() : onZeroStarHover()"></span>
<div *ngFor="let star of editableStars;" [ngStyle]="starPadding()" aria-hidden="true" (click)="readonly ? noop() : onStarClick($event, star)" (mousemove)="readonly ? noop() : onStarHover($event, star)">
<span class="star" [ngClass]="star.classname" [ngStyle]="starColorAndSize()" aria-hidden="true"></span>
</div>
Expand Down

0 comments on commit 0d78f65

Please sign in to comment.