MudBlazor/MudBlazor

Rating control still applies hover CSS when ReadOnly=true

已关闭

#13,265 创建于 2026年6月2日

 (0 条评论) (0 个反应) (0 位负责人)C# (1,631 个派生)batch import
buggood first issue

仓库指标

星标
 (10,394 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南