0

I am using typeahead from Angular Bootstrap. Sample plunker provided by them is here. As you can see $scope.states is filled by the array:

$scope.states = ['Alabama', 'Alaska', 'Arizona', ... ];

And it looks like this:

enter image description here


However, if I change the plunker to an array of numbers, as in this plunker; although you can move your cursor, and it returns you the values starting with the number you have typed; you can't see the content on the dropdown and it looks weird:

enter image description here

Is there a way to make typeahead work with integers?

4

1 に答える 1

1

昨日、 https: //github.com/angular-ui/bootstrap/commit/09678b1260dadb0a399d8e71fc2e1f5597c9ca31 で修正されたタイプアヘッドの実装 ( https://github.com/angular-ui/bootstrap/issues/1777を参照) にバグがありました . 修正は次のリリース (0.11.0) の一部になる予定です。現時点では、参照されているコミットで行われた変更に基づいて、バージョンにモンキー パッチを適用できます。

于 2014-02-11T10:15:15.133 に答える