javascript - AngularJS select dropdown not showing up -
i have problem select tag, got populated data wcf-service. when click on selectbox won`t open (see picture below), when navigate keyboard arrows, can select data. other sad thing is: not happen regular. occours, not.
this happens after click on select box. point of time data loaded service.
the concept of 2 select boxes shown below: after selecting in first select box (name="kind"), second should appear. works fine, when error occours , can select data keyboard. if bug in first select box, in second.
setup: ie 11, angularjs v1.5.5, bootstrap v3.3.5 did not happen in ff or chrome
datastructure of $agronomicservice.kindsoftasks.kindsoftasks
- it list of objects
- object: [{id: 1, name: "somename"}, {id: 2, name: "somename2"}]
html-code
<table class="tablepadding"> <thead></thead> <tbody> <tr> <td class="taskagronomicsfontsize">{{i18n.sometranslation1}}:</td> <td> <select name="kind" ng-options="label.id label.name label in $agronomicservice.kindsoftasks.kindsoftasks" ng-model="$taskservice.currenttask.kindoftask" ng-change="setkindoftaskinpath()" ng-disabled="isexistingtask || taskfinished" class="form-control" style="width: 200px;"> </select> </td> </tr> <tr ng-hide="$taskservice.currenttask.kindoftask == null"> <td ng-hide="$taskservice.currenttask.kindoftask == enums.kindoftask.pp" class="taskagronomicsfontsize">{{i18n.sometranslation2}}:</td> <td ng-show="$taskservice.currenttask.kindoftask == enums.kindoftask.pp" class="taskagronomicsfontsize">{{i18n.sometranslation3}}:</td> <td> <select name="application" ng-options="option.id option.name option in $agronomicservice.applications.applications | acapplicationfilter:$taskservice.currenttask.kindoftask" ng-model="$taskservice.currenttask.application" ng-change="setapplicationinpath()" ng-disabled="isexistingtask || taskfinished" class="form-control" style="width: 200px;"> </select> </td> </tr> </body> </table>
extract of js-code
var promisekot = $scope.$taskservice.updatekindsoftasks(); promisekot.then( function(newkindsoftasks) { $scope.$agronomicservice.kindsoftasks = newkindsoftasks; }); var updatekindsoftasks = function(){ var promise = $http.post(__serverurl__+'/getdata?' + new date().gettime(), 4, { headers : { 'sessionhash': __sessionhash__, 'access-control-request-methods': 'get, post', }, timeout : 600000, cache : false, responsetype : 'json' } ) .then(function(response) { return {kindsoftasks: response.data}; }, function(errorpayload) { //some error handling }); return promise; };
css
.form-control { font-size: 14px; border-radius: 0px; font-family: verdana; } .form-control:hover { outline: none !important; box-shadow: none !important; } .tablepadding > tbody > tr > td { padding-top: 10px; padding-left: 1px; padding-right: 1px; padding-bottom: 10px; } .tablepadding > thead > tr > th { padding-top: 5px; padding-left: 1px; padding-right: 1px; padding-bottom: 2px; }
what miss here? or doing wrong?
thanks help!
if need more information feel free ask =)
Comments
Post a Comment