- Set formSent() public on FormHandler class

- Fixed class attributes on form which was overwritting it instead of adding to base class
This commit is contained in:
Dave Mc Nicoll committed 2020-10-06 11:27:56 -04:00
1 parent 69c7121981
commit fd73d8e614
2 files changed
+7 -1

No files matched your search

+6
View File
@@ -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" ) {
+1 -1
View File
@@ -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 ) {