Skip to content

Commit 0949b16

Browse files
authored
fix(form): refresh module on re-initializaion
This PR fixes a regression from #1811 whereas the fields are not refreshed anymore when a form gets initialized a second/multiple times
1 parent 467839f commit 0949b16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/definitions/behaviors/form.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ $.fn.form = function(parameters) {
9191
else {
9292
if(instance !== undefined) {
9393
instance.invoke('destroy');
94+
module.refresh();
9495
}
9596
module.verbose('Initializing form validation', $module, settings);
9697
module.bindEvents();

0 commit comments

Comments
 (0)