Skip to content

Commit 1408be0

Browse files
authored
fix(form): refresh on instance to fetch dom changes
When a form gets initialized it is refreshing the field selectors. This is fine as long as there is only one call to the same form. Whenever a later bahavior call like get values takes place on the same form and the form fields have changed, the previous stored instance is not getting refresh (because only the "new" module is)
1 parent 214751b commit 1408be0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/definitions/behaviors/form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ $.fn.form = function(parameters) {
627627
instance = $module.data(moduleNamespace);
628628

629629
// refresh selector cache
630-
module.refresh();
630+
(instance || module).refresh();
631631
},
632632
field: function(identifier) {
633633
module.verbose('Finding field with identifier', identifier);

0 commit comments

Comments
 (0)