indrimuska / angular-moment-picker

Angular Moment Picker is an AngularJS directive for date and time picker using Moment.js.
http://indrimuska.github.io/angular-moment-picker/
MIT License
525 stars 226 forks source link

Moment Picker wont work on UI Modal #205

Closed ccarlos009 closed 7 years ago

ccarlos009 commented 7 years ago

i try to use the angular-moment-picker directive inside modal and this directives dont work

dtkern commented 7 years ago

The problem can be the CSS property z-index. Try changing it to a higher value.

I was facing the same problem and solved adding it to my custom CSS:

  1. (didn't work, couldn't understand why) .modal div.moment-picker, .modal-dialog div.moment-picker, .modal-content div.moment-picker { z-index: 5000 !important; }

  2. worked fine but it overrides the z-index for all moment-pickers, inside a modal or not. .moment-picker { z-index: 5000 !important; }

Good luck!

ccarlos009 commented 7 years ago

@dtkern works fine .. Thanks :D