We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nullかどうかの検証を行う際に、
<input id="assertNull2" name="assertNull" type="radio" data-nul /> 選択不可2
のようにnulとしないと発動しません(lが一つない)。が、実際の入力値の検証では
指定されたルールnulは未定義です
というメッセージがconsoleに出ます。
コードで、
this._formController.addRule({ assertNull: { assertNull: true } });
とした場合は正しく動きます。
The text was updated successfully, but these errors were encountered:
調査報告
data-*属性で指定できるルールをキーとしてバリデーション関数を呼び出す。 したがって、ルールnulをキーとしてバリデーション関数を呼び出そうとしてもnul関数が存在しないので「指定されたルールnulは未定義です」となる。
対応策 data-*属性で指定できるルール と ルールに基づいたバリデーション関数名を一致させる修正をする必要がある。
Sorry, something went wrong.
tkmHashi
No branches or pull requests
Nullかどうかの検証を行う際に、
のようにnulとしないと発動しません(lが一つない)。が、実際の入力値の検証では
というメッセージがconsoleに出ます。
コードで、
とした場合は正しく動きます。
The text was updated successfully, but these errors were encountered: