cleaverlove

Results 3 issues of cleaverlove

需求场景: 比如注册一个用户或者添加一个账号,需要输入账户密码。input type为“password”时,浏览器会自动填充记住的密码和账户。此时并不想要这个默认的行为,可以使用autocomplete来达到效果。因为textField并不接收这个props,会导致这个属性加在组件根元素上。通过改源码,亲测使用new-password是有效的。 参考: 知乎: https://www.zhihu.com/question/23529765 MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete MDN: https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion#Preventing_autofilling_with_autocompletenew-password

如题,看源码的时候,发现selectField组件里面的用于处理change事件的方法名称为handlehange,而不是handleChange,这个有意为之还是书写错误呢?

直接DOWNLOAD ZIP 下来 运行还是一直报错,找不出是什么原因!