3
請參閱下面的代碼,當通過輸入某個選項從輸入中選擇某個選項(即「Fr」),並且所有以法國開始的國家都會出現,但輸入後選擇輸入字段沒有得到清除用戶界面選擇重置搜索輸入不起作用
<ui-select multiple
ng-model="quote.targetLanguage"
reset-search-input="true"
theme="bootstrap"
ng-disabled="disabled"
close-on-select="false"
style="width: 800px;">
<ui-select-match placeholder="Select person...">
{{$item.language}}
</ui-select-match>
<ui-select-choices repeat="lang in controllersData.languages | filter: $select.search">
<div ng-bind-html="lang.language | highlight: $select.search"></div>
</ui-select-choices>
</ui-select>
什麼版本的用戶界面,選擇您使用的? – 2015-02-18 01:48:31
*版本:0.9.8 - 2015-02-16T15:10:00.891Z – eugenekgn 2015-02-18 17:06:29
你可以試用版本0.9.5只是爲了好奇這是我目前使用那個清除搜索在那裏工作。所以如果您在更改版本後仍然沒有清除搜索,那麼一定有其他錯誤,但是請先清除版本問題 – 2015-02-18 17:45:38