Skip to content

Commit af79d39

Browse files
committed
Form::$onReady is called in fireRenderEvents() when fireEvents() is not invoked
1 parent f0579a9 commit af79d39

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Forms/Form.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ public function getHttpData($type = NULL, $htmlName = NULL)
412412
public function fireEvents()
413413
{
414414
$this->onReady($this);
415+
$this->onReady = [];
415416
if (!$this->isSubmitted()) {
416417
return;
417418

@@ -617,6 +618,7 @@ public function fireRenderEvents()
617618
{
618619
if (!$this->beforeRenderCalled) {
619620
$this->beforeRenderCalled = TRUE;
621+
$this->onReady($this);
620622
$this->beforeRender();
621623
$this->onRender($this);
622624
}

0 commit comments

Comments
 (0)