2016-11-17 6 views
1

のUI選択にテキストを入力することはできません。は、私は1つのUI選択、次のように持ってangularjs 1.5.8

<ui-select multiple ng-disabled="!report.scenario" ng-model="report.students"> 
    <ui-select-match placeholder="">{{$item.id}}</ui-select-match> 
    <ui-select-choices repeat="{id: student.id} as student in CMP_PASSENGER_MASTER | filter: $select.search" refresh="refreshPassengers($select.search)" refresh-delay="300" reset-search-input="false"> 
     <div>{{student.fullName}}</div> 
     <small>ID: {{student.id}}</small> 
    </ui-select-choices> 
</ui-select> 

私が持っている問題は、私は上の任意のテキストを入力することができないということですこのui-selectにマップされる入力。私はテキストを貼り付ける(を右クリック - >を貼り付け)場合のみ動作CTRL + Vを、しかし、いずれかの動作しません。 ui-selectディレクティブのある時点でキーダウンイベントが防止されているようです。

これらは私の亭の依存関係です:

"dependencies": { 
    "angular": "^1.5.8", 
    "bootstrap": "^3.3.7", 
    "angular-cookies": "^1.4.0", 
    "angular-resource": "^1.4.0", 
    "angular-route": "^1.4.0", 
    "angular-sanitize": "^1.4.0", 
    "angular-touch": "^1.4.0", 
    "underscore": "^1.8.3", 
    "angular-ui-select": "^0.19.4", 
    "angular-bootstrap": "^2.2.0", 
    "angular-bootstrap-switch": "^0.5.1", 
    "angular-ui-switch": "^0.1.1", 
    "angular-xeditable": "^0.4.0", 
    "angularUtils-pagination": "angular-utils-pagination#^0.11.1", 
    "angular-confirm-modal": "^1.2.6" 
    }, 

任意の助けをいただければ幸いです。

答えて

0

私が使用したUI-選択0.9.4のバージョンにバグがありました。詳細については、あなたはここでそれを読むことができます:github.com/angular-ui/ui-select/commit/0d81493

が、私はそれが正常に動作している0.9.3にバージョンをダウングレード。

0

私が説明できないものを1つ見てください。これはreset-search-inputですが、これはui-select-choicesにあるのではなく、ui-selectタップであるべきです。これは、オプションを選択した後にリセットされるためです。それを試して変更し、それが役立つかどうかを確認してください。 ui-select Wiki

+0

こんにちは、ええ、あなたが正しいです。私はui-selectに移動しましたが、まだ動作していません。 – raven

+0

プランナーを共有できますか?また、バージョン19.5を試しましたか? – Jefiozie

+0

プランクターでは私はそれを再現できません。これはバグです:https://github.com/angular-ui/ui-select/commit/0d81493 – raven

関連する問題