alexeypt / ui-grid-edit-datepicker

This directive provides ability to use Bootstrap datepicker for editing dates in UI Grid
MIT License
13 stars 3 forks source link

Doesn't seem to work with ui-boostrap .10 #2

Open istvanskeri opened 8 years ago

istvanskeri commented 8 years ago

Do you support ui-bootstrap-tpls-0.10.0.js? I'm not seeing the actual calendar popup. There are no js errors in the console. I also noticed that the ul element is missing that holds the calendar widget

istvanskeri commented 8 years ago

I made this change and it started working:

//var html = '<div class="datepicker-wrapper" ><input uib-datepicker-popup is-open="isOpen" ng-model="' + attrs.rowField + '" ng-change="changeDate($event)" on-open-focus="false" disabled/></div>';

var html = '<div class="datepicker-wrapper" ><input datepicker-popup="MM-dd-yyyy" is-open="isOpen" ng-model="' + attrs.rowField + '" ng-change="changeDate($event)" disabled/></div>';

It seems like the directives are different for angular ui bootstrap .10

Joiler commented 8 years ago

@istvanskeri, I'm really advise you to upgrade ui bootstrap to version 0.14 or above when the big changes were made for datepicker and directive's name was changed from datepicker-popup to uib-datepicker-popup. Looks like, UI bootstrap datepicker below 0.14 and above 0.14 are not fully compatible.