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
var prototype = FpJsFormValidator.preparePrototype( FpJsFormValidator.cloneObject(item.jsFormValidator.prototype), name, item.jsFormValidator.id + '_' + name );
The third parameter of the method 'preparePrototype' is the 'Id' of element + unique index.
The method replaces the substring 'name' of the prototype to the third parameter.
As result, the ID contains a duplicate of the substring. The example below: ID (passed as the third parameter): checkout_info_orderItems_0_delegates_1
_ID after 'preparePrototype' calls: checkout_info_orderItems_0_delegates_checkout_info_orderItems_0_delegates_1_phone _
I think the 'preparePrototype' method should get the only unique index as the third parameter. Does it make sense?
The text was updated successfully, but these errors were encountered:
The issue occurs in the 'addPrototype' method.
var prototype = FpJsFormValidator.preparePrototype( FpJsFormValidator.cloneObject(item.jsFormValidator.prototype), name, item.jsFormValidator.id + '_' + name );
The third parameter of the method 'preparePrototype' is the 'Id' of element + unique index.
The method replaces the substring 'name' of the prototype to the third parameter.
As result, the ID contains a duplicate of the substring. The example below:
ID (passed as the third parameter): checkout_info_orderItems_0_delegates_1
_ID after 'preparePrototype' calls: checkout_info_orderItems_0_delegates_checkout_info_orderItems_0_delegates_1_phone _
I think the 'preparePrototype' method should get the only unique index as the third parameter. Does it make sense?
The text was updated successfully, but these errors were encountered: