- Fixed a bug where "002" value was set as "2", therefore failling to match selected items; a proper value selection must be implemented.

This commit is contained in:
Dave Mc Nicoll 2020-10-06 11:04:13 -04:00
parent 69c7121981
commit 8842ae4eaa
1 changed files with 0 additions and 8 deletions

View File

@ -75,14 +75,6 @@ class UiSelect extends UiElement implements Extension {
protected function isSelected($check, $value, bool $strict = true) : bool protected function isSelected($check, $value, bool $strict = true) : bool
{ {
if (false !== ( $f = filter_var($value, FILTER_VALIDATE_INT) ) ) {
$value = $f;
}
elseif (false !== ( $f = filter_var($value, FILTER_VALIDATE_FLOAT) ) ) {
$value = $f;
}
return $strict ? $check === $value : $check == $value; return $strict ? $check === $value : $check == $value;
} }
} }