diff --git a/src/components/rating/rating.component.ts b/src/components/rating/rating.component.ts index a00c28704d..4279cdd552 100644 --- a/src/components/rating/rating.component.ts +++ b/src/components/rating/rating.component.ts @@ -264,7 +264,6 @@ export default class SlRating extends ShoelaceElement { 'rating__symbol--hover': this.isHovering && Math.ceil(displayValue) === index + 1 })} role="presentation" - @mouseenter=${this.handleMouseEnter} >
= index + 1 })} role="presentation" - @mouseenter=${this.handleMouseEnter} > ${unsafeHTML(this.getSymbol(index + 1))} diff --git a/src/components/rating/rating.styles.ts b/src/components/rating/rating.styles.ts index ed57fd8423..6a1e1222e6 100644 --- a/src/components/rating/rating.styles.ts +++ b/src/components/rating/rating.styles.ts @@ -57,6 +57,7 @@ export default css` .rating__symbol { transition: var(--sl-transition-fast) scale; + pointer-events: none; } .rating__symbol--hover {