Skip to content
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

taro react input 约束性组件视图不更新 #11360

Closed
Rattenking opened this issue Feb 28, 2022 · 3 comments
Closed

taro react input 约束性组件视图不更新 #11360

Rattenking opened this issue Feb 28, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@Rattenking
Copy link

这个特性解决了什么问题?

input组件的onInput和onBlur事件中,使用了setState方法,js输出变量更新了,但是视图层的input显示值没有更新【H5出现的情况】。微信小程序没有这种情况,可以更新视图。比购买商品,我对输入购买商品的数量进行约束,然后对最后的值setState。js层完成了约束条件。但是input显示的value依然是输入的值,并没有进行约束更新setState的值【H5出现的情况】。

这个 API 长什么样?

期望他在H5的表现形式和微信小程序一样,视图层显示约束后的值。

@taro-bot2 taro-bot2 bot added the enhancement New feature or request label Feb 28, 2022
@github-actions
Copy link
Contributor

等待热心的小伙伴解决问题中..., 有一些相关的 issues 可能帮助到你!

Thank you so much!

@TheKonka
Copy link
Member

#2642 有点像这个?

@Rattenking
Copy link
Author

#2642 有点像这个?

对的,就是这个问题,谢谢,使用他的方法已解决!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants