Skip to content

Commit

Permalink
fix(form): refresh module on re-initializaion
Browse files Browse the repository at this point in the history
This PR fixes a regression from #1811 whereas the fields are not refreshed anymore when a form gets initialized a second/multiple times
  • Loading branch information
lubber-de authored Jan 7, 2021
1 parent 467839f commit 0949b16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/definitions/behaviors/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ $.fn.form = function(parameters) {
else {
if(instance !== undefined) {
instance.invoke('destroy');
module.refresh();
}
module.verbose('Initializing form validation', $module, settings);
module.bindEvents();
Expand Down

0 comments on commit 0949b16

Please sign in to comment.