Skip to content

Conversation

@zHaytam
Copy link
Contributor

@zHaytam zHaytam commented Jul 16, 2020

Add a DisplayName parameter to InputBase, which is used in validation messages instead of FieldIdentifier.FieldName.

  • This works for InputDate, InputNumber and InputSelect.
  • Extracted some shared code, just like what @StephanZahariev did in his PR.

Addresses #11414

@zHaytam zHaytam requested review from a team and SteveSandersonMS as code owners July 16, 2020 18:43
@ghost ghost added the area-blazor Includes: Blazor, Razor Components label Jul 16, 2020
@SteveSandersonMS
Copy link
Member

Nice one, thanks!

I’ll leave it to others on the team to verify and sign off, but just wanted to say the approach looks good, and thanks for the work on the tests!

@pranavkm pranavkm added this to the 5.0.0-rc1 milestone Jul 16, 2020
@pranavkm pranavkm merged commit 5bc2c49 into dotnet:master Jul 16, 2020
@pranavkm
Copy link
Contributor

Thanks for the PR @zHaytam !

@zHaytam
Copy link
Contributor Author

zHaytam commented Jul 16, 2020

Big thanks to you guys for the help and the event!

@zHaytam zHaytam deleted the input-display-name branch July 16, 2020 22:09
@mkArtakMSFT mkArtakMSFT added the community-contribution Indicates that the PR has been added by a community member label Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants