Browse Source

Fix destroy never being called before init #3798

pull/4046/head
Jack Lukic 8 years ago
parent
commit
05652ab7cd
2 changed files with 4 additions and 0 deletions
  1. 1
      RELEASE-NOTES.md
  2. 3
      src/definitions/behaviors/form.js

1
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**

3
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();

Loading…
Cancel
Save