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

Input 输入框使用@change事件中获取v-model值时值存在延迟 #552

Open
tanhaolong opened this issue Nov 8, 2024 · 0 comments

Comments

@tanhaolong
Copy link

问题描述
清晰地描述该错误是什么,请不要直接贴一张图或者一句话描述,需要提供尽可能多的信息才能便于问题定位,特别是连个版本号都没有的无从下手。

复现步骤
复现该行为的步骤:

  1. <up-input placeholder="请输入至少2个字,可搜索城市/目的地/地标" border="surround" v-model="searchValue" @change="getsearchDestination" placeholderClass="search-placeholder" clearable>

const getsearchDestination =()=>{
console.log(searchValue.value);
}
2.例如输入:text 当输入文字时候console.log值显示为tex

预期行为
当输入为text时在change事件中打印console.log为text

截图
如果适用,请添加截图以帮助解释你的问题。
QQ20241108-155110
QQ20241108-155221
QQ20241108-155300

版本(请填写以下信息)

  • HBuilderX:4.29
  • uview-plus:3.3.39
  • 开发者工具版本: 微信开发者工具1.06.2409140

平台(请填写以下信息)
微信开发者工具

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

No branches or pull requests

1 participant