ViewUIPlus
ViewUIPlus copied to clipboard
[Bug Report]Select 组件远程搜索,输入删除至空的时候,remote-method不被触发。
Environment
macos, windows, chrome, safari, vue3
Reproduction link
https://run.iviewui.com/LJIH80rM
Steps to reproduce
select搜索输入几个字符,逐一删除,删除空的时候,remote-method不被触发。
What is expected?
删除空的时候remote-method也要被触发,否则官方文档的示例代码中的“if (query !== '') {” 有何意义?
What is actually happening?
select搜索输入几个字符,逐一删除,删除空的时候,remote-method不被触发。
可以监听select的on-query-change事件,当搜索词改变时触发你的remote-method事件