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

v-model和ref结合使用时,ref.value=""更新失败,非空值或H5正常 #3107

Closed
sessionboy opened this issue Dec 24, 2021 · 0 comments
Assignees
Labels
app bug Something isn't working vue3

Comments

@sessionboy
Copy link

问题描述

<input v-model="test" type="text" /> 

<button @click="onreset">清空</button>
...

const test = ref("");
// 清空
const onreset = () =>{
   test.value = "";  // 值为""时更新失败,如果是非空值,例如22,则更新成功。
}

以上bug仅在App端,且test.value = ""时出现,H5端均正常。

系统信息:

  • 发行平台: App
  • 操作系统 Android 7.1
  • HBuilderX版本 3.3.2.20211218-alpha
  • uni-app版本
  • 设备信息 PDA设备 Android 7.1
fxy060608 added a commit that referenced this issue Dec 27, 2021
@fxy060608 fxy060608 added app bug Something isn't working vue3 labels Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app bug Something isn't working vue3
Projects
None yet
Development

No branches or pull requests

3 participants