-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
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
input组件的spellcheck属性设置问题 #1707
Comments
@wangxueliang 无奈,于是我忽略这个prop,直接
看着一堆警告,有点烦 对其他组件这样例如 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
1.4.10
Environment
Chrome79
Reproduction link
https://www.antdv.com/components/input-cn/
Steps to reproduce
我看https://github.com/vueComponent/ant-design-vue/blob/master/components/input/inputProps.js 定义了spellcheck
但是
<a-input :spell-check="false">
渲染出来结果是<input />
并没有spellcheck,预期应该是<input spellcheck="false" />
只有
<a-input :spell-check="true">
才能渲染<input spellcheck="true" />
这个预期结果而
<a-input spellcheck="false">
或者<a-input :spellcheck="false">
这样可以渲染出<input spellcheck="false" />
但控制台会有警告:Prop "spellcheck" is passed to component , but the declared prop name is "spellCheck". Note that HTML attributes are case-insensitive and camelCased props need to use their kebab-case equivalents when using in-DOM templates. You should probably use "spell-check" instead of "spellCheck"
What is expected?
spellcheck属性设置false/true都能符合预期
What is actually happening?
:spell-check="false"的时候不符合预期
The text was updated successfully, but these errors were encountered: