Fix #18323: Fix client validation of RadioList when there are disabled items

This commit is contained in:
Toir Tuychiev
2021-04-01 03:13:53 +05:00
committed by GitHub
parent 10bb71a822
commit 2650948e87
5 changed files with 37 additions and 8 deletions

View File

@ -329,7 +329,8 @@
this.$form = $form;
var $input = findInput($form, this);
if ($input.is(':disabled')) {
var disabled = $input.toArray().reduce((result, next) => result && $(next).is(':disabled'), true);
if (disabled) {
return true;
}
// validate markup for select input