Blazored / FluentValidation

A library for using FluentValidation with Blazor
https://blazored.github.io/FluentValidation/
MIT License
597 stars 85 forks source link

[Bug] Validation doesn't work with input type "password" #224

Open dotnetcsharp0x opened 7 months ago

dotnetcsharp0x commented 7 months ago

Validation doesn't work with input type "password" A clear and concise description of what the bug is. If we have input type a password, then validation doesn't work. I tried change it to type "text" and everything is okay for validation. But with input type "password" the program doesn't see the data. It's null. I attached .txt file with code. I use .NET 8

To Reproduce Steps to reproduce the behavior: .txt file

Expected behavior Validation of a password.

Screenshots Screenshot_12

Hosting Model (is this issue happening with a certain hosting model?):

Additional context Add any other context about the problem here. public class LoginModel.txt

If i put @oninput="@((ui) => {Model.Password = ui.Value.ToString();})" into inputtext field, then everything is okay