Closed sami1212 closed 9 years ago
ui-select2 is deprecated, you should use https://github.com/angular-ui/ui-select instead. Also this does not sounds like a bug report, but a request for support. StackOverflow would be more appropriate: http://stackoverflow.com/questions/tagged/ui-select2
I am trying to use select2 for remote data in angularJS using select2-AJAX, it works fine when i use there given example on http://ivaynberg.github.io/select2/, but when I'm working with my own code, it does not allow me to select value.
$scope.select2Options = { allowClear: true, minimumInputLength: 3,
ajax: { // instead of writing the function to execute the request we use Select2's convenient helper url: rootURL.tsURL + "valueSets/dy346:fhir.observation-codes/concepts/_fhir", dataType: 'json', quietMillis: 250,
},
formatResult: function(item) { console.log(item); return item['CodeableConcept.coding']['Coding.code'] + ": " + item['CodeableConcept.coding']['Coding.display']; }, formatSelection: function(item) { return item['CodeableConcept.coding']['Coding.code']; }
in Chrome Dev Tool, the select2
has a class "select2-result-unselectable" which does not allow me to select value.