tiny-vue icon indicating copy to clipboard operation
tiny-vue copied to clipboard

🐛 [Bug]: Search 搜索 组件,执行搜索后不失焦报错

Open jincheng0416 opened this issue 3 months ago • 1 comments

Version

3.25.0

Vue Version

3.5.18

Link to minimal reproduction

https://opentiny.design/tiny-vue/zh-CN/os-theme/components/search

Step to reproduce

<tiny-search ref="searchRef" @search="handleSearch"> const searchRef = ref(null) const handleSearch = (value, input) => { // 这里执行自定义的搜索方法后,默认,搜索框是会失焦的,但为了让搜索框不失焦,加上下面的方法 // searchRef.value.focus() // 这里确实可以让搜索框不失焦,但浏览器控制台报错 }

What is expected

期望:在不失焦的同时,让浏览器控制不报错,API 是否可以添加一个 聚焦的属性 或者 方法

What is actually happening

No response

What is your project name

公司的项目,没有开源

Any additional comments (optional)

No response

jincheng0416 avatar Sep 10 '25 07:09 jincheng0416