mgcrea / angular-strap

AngularJS 1.2+ native directives for Bootstrap 3.
mgcrea.github.io/angular-strap
MIT License
5.73k stars 1.38k forks source link

fix(datepicker): hide when autoclose set to true #2221

Closed mikejr83 closed 7 years ago

mikejr83 commented 7 years ago

Setting "autoclose" to true and "trigger" to "click" closes the datepicker dropdown when mouse event happens on the body.

Fix: The datepicker extends tooltip. Tooltip looks for 'autoClose' whereas datepicker expects 'autoclose'. The directive passes through 'autoclose' to 'autoClose'.

mikejr83 commented 7 years ago

I think I misinterpreted how the autoclose was supposed to work in the click trigger. This appears to cause regressions in other triggers.