Environment
vue-cli 2.5.2 and windows 10 and 谷歌 最新版本
Reproduction link
https://github.com/yangbaoxi/ceshi.git
Steps to reproduce
可以直接从git拉下代码查看
What is expected?
当我选中 第一个Select 的值 然后 清空搜索第二个 Select内容
What is actually happening?
你操作步骤可以: 选择 (第一个Select) oppo ==> 选择(第二个Select)随便选 ==> 选择(第一个Select )苹果 ==>你会发现 第二个Select 下拉值为空 原因是 搜索内容为空 我清空了 但是 似乎不好用,我想要的就是 选择二个的时候 正常数据出来 搜索内容值 为null (初始化的值就行)
3条答案
按热度按时间jjhzyzn01#
Translation of this issue:
Environment
Vue-cli 2.5.2 and windows 10 and Google latest version
Reproduction link
https://github.com/yangbaoxi/ceshi.git
Steps to reproduce
Can be viewed directly from the GIT code
What is expected?
When I select the value of the first Select, then empty the search for second Select contents.
What is actually happening?
Your operation step can be: Select (the first Select) oppo = = > select (second Select) to choose = = > = > select (the first Select) apple = = > you will find that the value of the Select drop-down is empty because the search is empty but it seems not to be good, and I want to choose the two. Constant data search content value is null (initialization value is OK).
cmssoen22#
解决了,setQuery 源码 判断是 quert === null 才行。。。 我看了一下源码解决了。
o4hqfura3#
setQuery
直接调用还不行,非得传null