You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<material:MultiplePickerFieldTitle="Multiple Picker">
<material:MultiplePickerField.Validations>
<root:CollectionNotEmptyValidationMessage="At least one option must be selected." />
</material:MultiplePickerField.Validations>
</material:MultiplePickerField>
I'll consider handling collections in RequiredValidation in the library in the next version
I see. Having RequiredValidation check for empty collections would be useful, however that is only part of the problem.
I dug a little deeper and found the real issue. MultiplePickerField does not override the GetValueForValidator() virtual method defined on InputField. Because of this it uses the implementation in InputField which just returns new object() (see below).
MultiplePickerField does not have any error text or icon when validations are applied.
Consider the following layout:
When the submit button is pressed without filling out either field it only shows the error for the single picker field.
The text was updated successfully, but these errors were encountered: