axel-zarate/js-custom-select

Pre selection not working with angular-ui datepicker.

Closed this issue · 3 comments

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" >

Hello,

Can you provide a fiddle where you replicate the issue?

Thanks.

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.

Closed due to inactivity.