Skip to content

Commit

Permalink
output error element, not errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TomK committed Apr 15, 2019
1 parent 7ce54c0 commit 2070f51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Decorators/HiddenInputDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ class HiddenInputDecorator extends InputDecorator

public function produceSafeHTML(): SafeHtml
{
return SafeHtml::escape([$this->_getInputElement(), $this->_handler->getErrors()], '');
return SafeHtml::escape([$this->_getInputElement(), $this->_getErrorElement()], '');
}
}

0 comments on commit 2070f51

Please sign in to comment.