We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bebb469 commit 59e32c6Copy full SHA for 59e32c6
src/DynamicFormWidget.php
@@ -216,7 +216,7 @@ public function registerAssets($view)
216
$js .= "});\n";
217
$view->registerJs($js, $view::POS_READY);
218
219
- $js = 'jQuery("#' . $this->formId . '").yiiDynamicForm(' . $this->_hashVar .');' . "\n";
+ $js = 'jQuery("#' . $this->formId . '").on(\'afterInit\', function () {jQuery("#' . $this->formId . '").yiiDynamicForm(' . $this->_hashVar .');});' . "\n";
220
$view->registerJs($js, $view::POS_LOAD);
221
}
222
0 commit comments