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
Current behavior:
The new function ValidationController.revalidateErrors() is throwing errors when we try to use it.
The error is TypeError: rules[i].indexOf is not a function and occurs in StandardValidator.ruleExists(), in src/implementation/standard-validator.ts:56.
The object resolving at rules[i] is always an instance of Rule<TObject, TValue>, and is never an array, so this function always breaks. It doesn't appear to be called at all for normal validation workflow.
Expected/desired behavior:
There should be no error, and existing rule results should be re-rendered in the UI. We want to use this to reset validation messages when language changes via the aurelia-i18n plugin.
The text was updated successfully, but these errors were encountered:
I'm submitting a bug report
1.1.1
Please tell us about your environment:
Operating System:
Windows 10
Node Version:
6.10.1
NPM Version:
4.4.1
Browser:
all
Language:
TypeScript 2.2.2
Current behavior:
The new function
ValidationController.revalidateErrors()
is throwing errors when we try to use it.The error is
TypeError: rules[i].indexOf is not a function
and occurs inStandardValidator.ruleExists()
, in src/implementation/standard-validator.ts:56.The object resolving at
rules[i]
is always an instance ofRule<TObject, TValue>
, and is never an array, so this function always breaks. It doesn't appear to be called at all for normal validation workflow.Expected/desired behavior:
There should be no error, and existing rule results should be re-rendered in the UI. We want to use this to reset validation messages when language changes via the aurelia-i18n plugin.
The text was updated successfully, but these errors were encountered: