This repository was archived by the owner on Oct 2, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,15 @@ <h3>Tagging without multiple</h3>
130
130
</ ui-select >
131
131
< p > Selected: {{person.selected}}</ p >
132
132
133
+ < h3 > Tagging without multiple, with simple strings</ h3 >
134
+ < ui-select tagging ="true " tagging-label ="('new') " ng-cloak ng-model ="color.selected " theme ="bootstrap " style ="width: 800px; " title ="Choose a color ">
135
+ < ui-select-match placeholder ="Select color... "> {{$select.selected}}</ ui-select-match >
136
+ < ui-select-choices repeat ="color in availableColors | filter: $select.search ">
137
+ < div ng-bind-html ="color | highlight: $select.search "> </ div >
138
+ </ ui-select-choices >
139
+ </ ui-select >
140
+ < p > Selected: {{color.selected}}</ p >
141
+
133
142
134
143
< div style ="height:500px "> </ div >
135
144
Original file line number Diff line number Diff line change 827
827
return false ;
828
828
}
829
829
var hasDupe = arr . filter ( function ( origItem ) {
830
- if ( ctrl . search . toUpperCase ( ) === undefined ) {
830
+ if ( ctrl . search . toUpperCase ( ) === undefined || origItem === undefined ) {
831
831
return false ;
832
832
}
833
833
return origItem . toUpperCase ( ) === ctrl . search . toUpperCase ( ) ;
You can’t perform that action at this time.
0 commit comments