无法在 angularjs 1.5.8 中的 ui-select 上输入文本
Can't enter text on ui-select in angularjs 1.5.8
我有一个 ui-select 如下:
<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"
},
如有任何帮助,我们将不胜感激。
只是看到一件事我无法解释,那就是 reset-search-input
这不应该出现在 ui-select-choices
上,而是出现在 ui-select 水龙头上。因为这将在 select 选择一个选项后重置。尝试改变它,看看它是否有帮助。 ui-select Wiki
我使用的 ui-select 0.9.4 版本存在错误。更多详情,您可以在这里阅读:github.com/angular-ui/ui-select/commit/0d81493
我将版本降级到 0.9.3,它工作正常。
我有一个 ui-select 如下:
<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"
},
如有任何帮助,我们将不胜感激。
只是看到一件事我无法解释,那就是 reset-search-input
这不应该出现在 ui-select-choices
上,而是出现在 ui-select 水龙头上。因为这将在 select 选择一个选项后重置。尝试改变它,看看它是否有帮助。 ui-select Wiki
我使用的 ui-select 0.9.4 版本存在错误。更多详情,您可以在这里阅读:github.com/angular-ui/ui-select/commit/0d81493
我将版本降级到 0.9.3,它工作正常。