From 0949b16fdbb99fbddd6a4a159e73518e5d536a98 Mon Sep 17 00:00:00 2001 From: Marco 'Lubber' Wienkoop Date: Thu, 7 Jan 2021 22:19:28 +0100 Subject: [PATCH] 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 --- src/definitions/behaviors/form.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/definitions/behaviors/form.js b/src/definitions/behaviors/form.js index 0e7dbe8a19..cf5524660a 100644 --- a/src/definitions/behaviors/form.js +++ b/src/definitions/behaviors/form.js @@ -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();