MudBlazor/MudBlazor

MudTextField with InputType="Date" displays Safari's placeholder date incorrectly

开放

#10,155 创建于 2024年11月1日

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

仓库指标

星标
 (10,394 个星标)
PR 合并指标
 (平均合并 6天 6小时) (30 天内合并 108 个 PR)

描述

Things to check

  • I have searched the existing issues for this bug
  • To rule out a caching problem I made sure the bug also happens in an incognito tab

Bug type

Component

Component name

MudTextField

What happened?

The MudTextField component with InputType="Date" displays Safari's placeholder date with normal Color (black), and it looks like it's actually a value, which is very confusing to the user.

The bug can also be replicated by visiting the docs, scrolling down to the date and

Expected behavior

The placeholder-date should be displayed grey, just like in dark-mode.

Reproduction link

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

Reproduction steps

  1. Open snippet in Safari
  2. Klick the button to switch themes
  3. observe

Relevant log output

No response

Version (bug)

6.21.0

Version (working)

No response

What browsers are you seeing the problem on?

Safari

On which operating systems are you experiencing the issue?

macOS

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct

贡献者指南