|  | 
| 6 | 6 |     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css"> | 
| 7 | 7 |     <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | 
| 8 | 8 |     <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script> | 
| 9 |  | -    <script src="https://cdnjs.cloudflare.com/ajax/libs/choices.js/3.0.4/choices.js"></script> | 
|  | 9 | +    <script src="https://rawgit.com/jshjohnson/Choices/v4.1.3/public/assets/scripts/choices.js"></script> | 
| 10 | 10 |     <script src="dist/choicesjsstencil.js"></script> | 
| 11 | 11 |     <style> | 
| 12 | 12 |       html { | 
| @@ -217,9 +217,9 @@ <h2 class="col-sm-12">ChoicesJS Web Component: test page</h2> | 
| 217 | 217 |               </span> | 
| 218 | 218 |             </div> | 
| 219 | 219 |             <div class="form-group type type--text type--multiple"> | 
| 220 |  | -              <label for="duplicateItems"> | 
|  | 220 | +              <label for="duplicateItemsAllowed"> | 
| 221 | 221 |                 Duplicate items | 
| 222 |  | -                <input type="checkbox" name="duplicateItems" checked> | 
|  | 222 | +                <input type="checkbox" name="duplicateItemsAllowed" checked> | 
| 223 | 223 |               </label> | 
| 224 | 224 |               <span class="description" data-toggle="tooltip" title="Whether each inputted/chosen item should be unique."> | 
| 225 | 225 |                 <span class="glyphicon glyphicon glyphicon-question-sign"></span> | 
| @@ -501,16 +501,16 @@ <h2 class="col-sm-12">ChoicesJS Web Component: test page</h2> | 
| 501 | 501 |               </a> | 
| 502 | 502 |             </div> | 
| 503 | 503 |             <div class="form-group type type--single type--multiple"> | 
| 504 |  | -              <label for="sortFilter"> | 
| 505 |  | -                sortFilter(a, b) { | 
|  | 504 | +              <label for="sortFn"> | 
|  | 505 | +                sortFn(a, b) { | 
| 506 | 506 |               </label> | 
| 507 | 507 |               <span class="description" data-toggle="tooltip" title="The function that will sort choices and items before they are displayed (unless a user is searching). By default choices and items are sorted by alphabetical order.<br/><br/>The function takes two parameters: a, b."> | 
| 508 | 508 |                 <span class="glyphicon glyphicon glyphicon-question-sign"></span> | 
| 509 | 509 |               </span> | 
| 510 |  | -              <textarea class="form-control textarea--vertical" name="sortFilter" rows="2"> | 
|  | 510 | +              <textarea class="form-control textarea--vertical" name="sortFn" rows="2"> | 
| 511 | 511 | return a.label.localeCompare(b.label); | 
| 512 | 512 |               </textarea> | 
| 513 |  | -              <label for="sortFilter">}</label> | 
|  | 513 | +              <label for="sortFn">}</label> | 
| 514 | 514 |             </div> | 
| 515 | 515 |           </div> | 
| 516 | 516 |         </div> | 
| @@ -804,7 +804,7 @@ <h5 class="text-center pad-bottom">See full Fuse documentation in <a href="https | 
| 804 | 804 |                 return template.replace('${maxItemCount}', maxItemCount); | 
| 805 | 805 |               }; | 
| 806 | 806 |             }, | 
| 807 |  | -            sortFilter: function(value) { | 
|  | 807 | +            sortFn: function(value) { | 
| 808 | 808 |               return new Function('a', 'b', value.trim()); | 
| 809 | 809 |             }, | 
| 810 | 810 |             callbackOnInit: function(value) { | 
|  | 
0 commit comments