- Added the multiple value selection

This commit is contained in:
Dave Mc Nicoll 2022-11-11 13:58:22 +00:00
parent 1f5d38a8b9
commit bd501bce86
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}
}