axel-zarate / js-custom-select

Custom auto-complete select box for AngularJS and Bootstrap
MIT License
68 stars 59 forks source link

Pre selection not working with angular-ui datepicker. #7

Closed ghost closed 8 years ago

ghost commented 9 years ago

Hi,

I am trying to use your widget with angular-ui, datepicker (https://angular-ui.github.io/bootstrap/#/datepicker). Pre selection is not working when I add angular-ui datepicker.

 <input type="text" class="form-control" datepicker-popup="{{format}}" ng-model="count.dt" is-open="opened" min-date="minDate" max-date="'2015-06-22'" datepicker-options="dateOptions" date-disabled="disabled(date, mode)" ng-required="true" close-text="Close" />
<div custom-select id="id_plu" class="required" name="plu" ng-model="count.plu" ng-options="plu.id for plu in plu_list" >
axel-zarate commented 9 years ago

Hello,

Can you provide a fiddle where you replicate the issue?

Thanks.

axel-zarate commented 9 years ago

If you are using Angular 1.4 or greater, chances are that the initial value is not being shown in the view. You can try with the version in this branch. A few things have changed here and eventually this will be moved into the master branch.

Regards.

axel-zarate commented 8 years ago

Closed due to inactivity.