input/textarea组件关于maxlength的限制不能输入是否增加api #123
carolin913
started this conversation in
Ideas
Replies: 3 comments 1 reply
-
还有maxcharacter这种,如果都按erroronly这种方式扩展,会很冗余,建议还是使用一个新的api比较好 |
Beta Was this translation helpful? Give feedback.
0 replies
-
讨论结果,采用allowInputOverMax |
Beta Was this translation helpful? Give feedback.
0 replies
-
微信小程序的textarea同样遇到这个问题 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
如图,目前input和textarea组件中有maxlength的设置就会阻止输入,对于一些copy内容来发表,如微博发表等场景,使用时还需要先去其他地方编辑好,数好字数再贴进来,体验不是很友好。
参考了下arco
https://arco.design/react/components/input#%E5%AD%97%E6%95%B0%E7%BB%9F%E8%AE%A1
感觉是比较合理的方案,大家可以看下是否可以如此扩展maxlength
Beta Was this translation helpful? Give feedback.
All reactions