Merge branch 'master' of https://git.mcnd.ca/mcndave/picea-ui
This commit is contained in:
commit
95c30be9f8
@ -57,6 +57,12 @@ class UiForm extends UiElement implements Extension {
|
|||||||
|
|
||||||
$this->option('tag-type', 'single');
|
$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);
|
$this->attributes([ 'method' => $method, 'action' => $action ] + $attributes);
|
||||||
|
|
||||||
if ( $method !== "get" ) {
|
if ( $method !== "get" ) {
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ class FormHandler {
|
|||||||
$this->initialize();
|
$this->initialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function formSent() : void
|
public function formSent() : void
|
||||||
{
|
{
|
||||||
if ( false !== $this->context->formSent = $this->sent ) {
|
if ( false !== $this->context->formSent = $this->sent ) {
|
||||||
if ( $this->context->formName ?? false ) {
|
if ( $this->context->formName ?? false ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user