Hello,
In the example you provide there is the same error. We have resolved it the following:
Example:
container.find(
"[data-valmsg-for="
+ name +
"],[data-val-msg-for="
+ name +
"]"
)
.replaceWith(validationMessageTmpl({ field: name, message: errors[0] }))
Our fix (notice the single quotes:
container.find(
"[data-valmsg-for='"
+ name +
"'],[data-val-msg-for='"
+ name +
"']"
)
.replaceWith(fieldValidationErrorMessageTemplate({ field: name, message: errors[0] }));
Thanks for looking into it!