You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When initializing the validator (currently on the plugin) the settings object provided is not copied but somehow referenced.
Apparently the fields DOM elements references are kept when the same settings object is provided to initialize either the same form rendered again on the same window instance of in another form with the same fields.
An hypothesis is: the object is copied but shallowly, and the arrays within are referenced and not overwritten (fields and fieldsets) so the DOM elements are referenced when the same settings object is provided in another instance.
The solution for now is to provide a different settings object each time the vulcanval is instantiated.
The text was updated successfully, but these errors were encountered:
When initializing the validator (currently on the plugin) the settings object provided is not copied but somehow referenced.
Apparently the fields DOM elements references are kept when the same settings object is provided to initialize either the same form rendered again on the same window instance of in another form with the same fields.
An hypothesis is: the object is copied but shallowly, and the arrays within are referenced and not overwritten (fields and fieldsets) so the DOM elements are referenced when the same settings object is provided in another instance.
The solution for now is to provide a different settings object each time the vulcanval is instantiated.
The text was updated successfully, but these errors were encountered: