Skip to content

Commit

Permalink
[bugfix] yiiActiveFormData is undefined
Browse files Browse the repository at this point in the history
wait until `document.ready` not `window.load`.
<wbraganca#274>
  • Loading branch information
anovsiradj authored Oct 22, 2021
1 parent bebb469 commit 74e85f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DynamicFormWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public function registerAssets($view)
$view->registerJs($js, $view::POS_READY);

$js = 'jQuery("#' . $this->formId . '").yiiDynamicForm(' . $this->_hashVar .');' . "\n";
$view->registerJs($js, $view::POS_LOAD);
$view->registerJs($js, $view::POS_READY);
}

/**
Expand Down

0 comments on commit 74e85f5

Please sign in to comment.