enisn / UraniumUI

Uranium is a Free & Open-Source UI Kit for MAUI.
Apache License 2.0
984 stars 110 forks source link

RequiredValidator deselects the element #617

Open DeliriumCode opened 1 month ago

DeliriumCode commented 1 month ago

So I have the following:

  <material:EditorField Title="{x:Static resx:GeneralText.Name}" Text="{Binding Name}" Padding="8,0,8,0">
      <material:EditorField.Validations>
          <validation:RequiredValidation Message="{x:Static resx:GeneralText.Validation_Required}" />
      </material:EditorField.Validations>
  </material:EditorField>

      <material:EditorField Title="{x:Static resx:GeneralText.Url}" Text="{Binding Url}" >
          <material:EditorField.Validations>
              <validation:RequiredValidation Message="{x:Static resx:GeneralText.Validation_Required}" />
          </material:EditorField.Validations>
      </material:EditorField>

So in the above snippet, on the first editorfield if i type a single character and then delete it, the focus will switch to the second input field. I then have to reselect the first field to continue typing.

In essence once the validator message is shown you can type one character, it then deselects the input, and you have to click it again.

Observed on both windows and android, not yet tested on ios.

DeliriumCode commented 1 month ago

This looks to affect windows only...