diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index c4c80b147f..03f77e8f06 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -62,6 +62,7 @@ - **Dropdown** - Seach selection would lose search input focus when clicking on a choice #3790 - **Embed** - `API` setting is now disabled by default - **Form** - Fix `equal width fields` sometimes not including right field spacing on mobile #3913 +- **Form Validation ** - Fixed issue where initializing form multiple times would not properly call `destroy` removing previous settings #3798 - **Form** - Grouped `fields` and `field` would cause different margin collapse, making `fields` include larger gaps between content #3717 - **Form** - Fixed issue where `inline` field was not being correctly inverted in color with `inverted form` #4004 #4005 **Thanks @tbracken** - **Form** - Remove deprecated `size()` method in `prompt` #3655 **Thanks @SimonArdrey** diff --git a/src/definitions/behaviors/form.js b/src/definitions/behaviors/form.js index 35f08ac71b..286e0fc626 100644 --- a/src/definitions/behaviors/form.js +++ b/src/definitions/behaviors/form.js @@ -81,6 +81,9 @@ $.fn.form = function(parameters) { module.invoke(query); } else { + if(instance !== undefined) { + instance.invoke('destroy'); + } module.verbose('Initializing form validation', $module, settings); module.bindEvents(); module.set.defaults();