mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 08:18:43 -03:30
make selects work with ng required
This commit is contained in:
@@ -49,7 +49,8 @@ function BaseInputController (strings) {
|
||||
scope.state._touched = true;
|
||||
}
|
||||
|
||||
if (scope.state._required && !scope.state._value && !scope.state._displayValue) {
|
||||
if (scope.state._required && (!scope.state._value || !scope.state._value[0]) &&
|
||||
!scope.state._displayValue) {
|
||||
isValid = false;
|
||||
message = vm.strings.get('message.REQUIRED_INPUT_MISSING');
|
||||
} else if (scope.state._validate) {
|
||||
|
||||
Reference in New Issue
Block a user