This commit is contained in:
Dave Mc Nicoll 2020-10-06 11:40:53 -04:00
commit 95c30be9f8
3 changed files with 7 additions and 9 deletions

@ -57,6 +57,12 @@ class UiForm extends UiElement implements Extension {
$this->option('tag-type', 'single');
if ($attributes['class'] ?? false) {
$attributes['class'] .= " {$this->attributes['class']}";
unset($this->attributes['class']);
}
$this->attributes([ 'method' => $method, 'action' => $action ] + $attributes);
if ( $method !== "get" ) {

@ -75,14 +75,6 @@ class UiSelect extends UiElement implements Extension {
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;
}
}

@ -34,7 +34,7 @@ class FormHandler {
$this->initialize();
}
protected function formSent() : void
public function formSent() : void
{
if ( false !== $this->context->formSent = $this->sent ) {
if ( $this->context->formName ?? false ) {