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

form中的input,onInput事件中只要更新模板中用到的其他数据,input内容就会被自动清空 #7202

Closed
lt1129 opened this issue Jul 29, 2020 · 2 comments
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@lt1129
Copy link

lt1129 commented Jul 29, 2020

相关平台

微信小程序

小程序基础库: 2.10.4
使用框架: Vue 2

复现步骤

{{index}} <script> export default { name: 'search', data() { searchResultList: [] }, methods: { inputKeyword(event) { this.searchResultList = [] } } </script>

期望结果

输入内容时,onInput响应函数中改变模板中用到的其他数据时,input内容不要受影响,比如被清空

实际结果

输入内容时,onInput响应函数中改变模板中用到的其他数据时,input内容被清空了

环境信息

Taro CLI 3.0.0-rc.4 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 14.4.0 - C:\Program Files\nodejs\node.EXE
      npm: 6.14.5 - C:\Users\langtao\AppData\Roaming\npm\npm.CMD

补充信息

华为Mate 20 ,android 10操作系统,微信小程序

@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Jul 29, 2020
@lt1129 lt1129 closed this as completed Jul 29, 2020
@lt1129 lt1129 reopened this Jul 29, 2020
@Chen-jj
Copy link
Contributor

Chen-jj commented Jul 30, 2020

升级到最新版本再试试,还不行就提供可复现的 demo 吧

@lt1129
Copy link
Author

lt1129 commented Jul 30, 2020

taro V3.0.6中,已经修复了这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

2 participants