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
使用表单验证时,getFieldProps 第一个参数填写 'nodeName'。
const props = getFieldProps('nodeName', { rules: [ { required: true} ] });
能正常校验。
console 中不断报出错误。
Uncaught TypeError: elem.nodeName.toLowerCase is not a function
只要 ID 不用 'nodeName',就没有问题。
The text was updated successfully, but these errors were encountered:
React 的问题 facebook/react#6284
Sorry, something went wrong.
好像是浏览器 bug:
var form = document.createElement('form'); var input = document.createElement('input'); input.setAttribute('id', 'nodeName'); form.appendChild(input); console.log(form);
在 chrome 中输出: TypeError: (var).nodeName.toLowerCase is not a function at :5:9
benjycui
No branches or pull requests
本地环境
你做了什么?
使用表单验证时,getFieldProps 第一个参数填写 'nodeName'。
你期待的结果是:
能正常校验。
实际上的结果:
console 中不断报出错误。
只要 ID 不用 'nodeName',就没有问题。
The text was updated successfully, but these errors were encountered: