MudBlazor/MudBlazor

Rating control still applies hover CSS when ReadOnly=true

Closed

Aperta il 2 giu 2026

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)C# (10.394 star) (1631 fork)batch import
buggood first issue

Descrizione

Before reporting

  • I searched existing issues
  • I tried in private/incognito browser

What went wrong?

The rating/star control has a setting ReadOnly=true, which removes all interactions with the control.

However, if you mouse-over the stars, they still change with the hover CSS, filling in solid yellow and growing larger. If it is properly readonly, they should not have the hover style applied.

Reproduction link

https://try.mudblazor.com/snippet/i4_3TczM0ytKrMovkrfxLU0JSizJzEtXCEpNTPHPy6m0VSopKk1VUghOzUlNLklNCUvMKU21VTJSUtC3AwA

Reproduction steps

To see this happen, just go to the MudBlazor Rating docs page or the snippet above, and move your mouse over the Read-Only version of the control.

Version (bug)

v9.5

Version (working)

No idea.

Environment

Chrome

Blazor rendering mode

WASM

Guida contributor