diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 8e6bbdea4f..4b2d8e07e6 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -18,6 +18,7 @@ Yii Framework 2 Change Log - Bug #3184: Fixed the bug that client validation for string length comparison did not set error message correctly (Sergeygithub) - Bug #3194: Date formatter works only for timestamps in the year range 1970 to 2038 (kartik-v) - Bug #3204: `yii\di\Container` did not handle the `$config` parameter well in case when it does not have a default value (qiangxue) +- Bug #3216: Fixed the bug that `yii.activeForm.destroy()` did not remove `submit` event handlers (qiangxue) - Enh #2837: Error page now shows arguments in stack trace method calls (samdark) - Enh #3088: The debug and gii modules will manage their own URL rules now (hiltonjanfield, qiangxue) - Enh #3103: debugger panel is now not displayed when printing a page (githubjeka) diff --git a/framework/assets/yii.activeForm.js b/framework/assets/yii.activeForm.js index 91833785a7..ce244c4796 100644 --- a/framework/assets/yii.activeForm.js +++ b/framework/assets/yii.activeForm.js @@ -111,7 +111,7 @@ $form.on('mouseup.yiiActiveForm keyup.yiiActiveForm', ':submit', function () { $form.data('yiiActiveForm').submitObject = $(this); }); - $form.on('submit', methods.submitForm); + $form.on('submit.yiiActiveForm', methods.submitForm); } }); },