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

van-search设置clear-trigger=“always”首次渲染删除按钮不显示 #5779

Closed
zhudasen opened this issue May 6, 2024 · 1 comment
Closed

Comments

@zhudasen
Copy link

zhudasen commented May 6, 2024

重现链接

Uploading image.png…

created(),未调用this.setShowClear(),修复代码created()中添加 utils_1.nextTick(()=>this.setShowClear());

Vant Weapp 版本

1.11.5

描述一下你遇到的问题。

van-search设置clear-trigger=“always”,为value绑定初始值,首次渲染删除按钮不显示

重现步骤

van-search设置clear-trigger=“always”,为value绑定初始值,首次渲染删除按钮不显示

设备/浏览器

No response

@landluck
Copy link
Contributor

v1.11.6 已修复

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

No branches or pull requests

2 participants