diff --git a/src/Form/UiSelect.php b/src/Form/UiSelect.php index 499fc4b..9e1d937 100644 --- a/src/Form/UiSelect.php +++ b/src/Form/UiSelect.php @@ -79,6 +79,11 @@ class UiSelect extends UiElement implements Extension { protected function isSelected($check, $value, bool $strict = true) : bool { + if ( is_array($value) ) { + return in_array($check, $value, $strict); + } + + return $strict ? $check === $value : $check == $value; } }