Skip to content
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
@Brosten

Description

@Brosten

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

  1. Add a validator like the linked example and run the code
  2. Add "test@test" as input text
  3. Unfocus (Text becomes red, correct!)
  4. Change text to "[email protected]"
  5. Unfocus (Text becomes black, correct!)
  6. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    UWPUWP platform issue.a/behaviorsThis issue/PR is related to behaviorsbugSomething isn't working. Breaky break.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions