Commit d859fca5 by Qiang Xue

Fixes #3216: Fixed the bug that `yii.activeForm.destroy()` did not remove `submit` event handlers

parent 30afb514
...@@ -18,6 +18,7 @@ Yii Framework 2 Change Log ...@@ -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 #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 #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 #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 #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 #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) - Enh #3103: debugger panel is now not displayed when printing a page (githubjeka)
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
$form.on('mouseup.yiiActiveForm keyup.yiiActiveForm', ':submit', function () { $form.on('mouseup.yiiActiveForm keyup.yiiActiveForm', ':submit', function () {
$form.data('yiiActiveForm').submitObject = $(this); $form.data('yiiActiveForm').submitObject = $(this);
}); });
$form.on('submit', methods.submitForm); $form.on('submit.yiiActiveForm', methods.submitForm);
} }
}); });
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment