This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.
[Bug][Uwp] TextValidationBehavior inconsistent when not setting ValidStyle #678
Open
Description
Description
I implemented email validation, following this example,
However, on UWP it isn't really consistent, as long as a "ValidStyle" isn't added. Shoulden't the "Valid" style default to whatever style the control had without the behaviour?
Steps to Reproduce
- Add a validator like the linked example and run the code
- Add "test@test" as input text
- Unfocus (Text becomes red, correct!)
- Change text to "[email protected]"
- Unfocus (Text becomes black, correct!)
- Focus back (Text becomes red, feels incorrect!)
Expected Behavior
A black text when setting the focus back
Actual Behavior
A red text
Basic Information
- Version with issue:
1.0.0-pre5 - Last known good version:
? - IDE:
- Platform Target Frameworks:
- iOS: Seems to work
- Android: Seems to work
- UWP: 1903
- Android Support Library Version:
- Nuget Packages:
- Affected Devices:
Workaround
If you set a "ValidStyle" with black text, it's correctly set back to black, when focusing