Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 7963684

Browse files
committed
fix(demo-tagging): error in Object Tags for input "a"
1 parent 80be85b commit 7963684

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/demo-tagging.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ <h3>Object Tags (with groupBy)</h3>
9090
<ui-select multiple tagging="tagTransform" ng-model="multipleDemo.selectedPeople" theme="bootstrap" ng-disabled="disabled" style="width: 800px;" title="Choose a person">
9191
<ui-select-match placeholder="Select person...">{{$item.name}} &lt;{{$item.email}}&gt;</ui-select-match>
9292
<ui-select-choices repeat="person in people | propsFilter: {name: $select.search, age: $select.search}" group-by="'country'">
93-
<div ng-if="person.isTag" ng-bind-html="person.name +' <small>(new)</small>'| highlight: $select.search"></div>
93+
<div ng-if="person.isTag" ng-bind-html="(person.name | highlight: $select.search) +' <small>(new)</small>'"></div>
9494
<div ng-if="!person.isTag" ng-bind-html="person.name + person.isTag| highlight: $select.search"></div>
9595
<small>
9696
email: {{person.email}}
@@ -120,7 +120,7 @@ <h3>Tagging without multiple</h3>
120120
<ui-select tagging="tagTransform" ng-model="person.selected" theme="bootstrap" ng-disabled="disabled" style="width: 800px;" title="Choose a person">
121121
<ui-select-match placeholder="Select person...">{{$select.selected.name}} &lt;{{$select.selected.email}}&gt;</ui-select-match>
122122
<ui-select-choices repeat="person in people | propsFilter: {name: $select.search, age: $select.search}">
123-
<div ng-if="person.isTag" ng-bind-html="person.name +' <small>(new)</small>'| highlight: $select.search"></div>
123+
<div ng-if="person.isTag" ng-bind-html="(person.name | highlight: $select.search) +' <small>(new)</small>'"></div>
124124
<div ng-if="!person.isTag" ng-bind-html="person.name + person.isTag| highlight: $select.search"></div>
125125
<small>
126126
email: {{person.email}}

0 commit comments

Comments
 (0)