angular-ui / bootstrap

PLEASE READ THE PROJECT STATUS BELOW. Native AngularJS (Angular) directives for Bootstrap. Smaller footprint (20kB gzipped), no 3rd party JS dependencies (jQuery, bootstrap JS) required. Please read the README.md file before submitting an issue!
http://angular-ui.github.io/bootstrap/
MIT License
14.3k stars 6.74k forks source link

uib-datepicker-popup throws an error by clicking outsite of the popup when is-open expression is a method or a multiple boolean condition #6575

Open dackmin opened 7 years ago

dackmin commented 7 years ago

Bug description:

It seems that is-open attribute from uib-datepicker-popup directive doesn't accept all types of angular expressions. When giving it a method (ex. is_opened()) or a multiple boolean condition (ex: opened && focused && !beautiful), $watch seems to be doing its work (toggling the calendar with a button works as intended), but when you click on the outside of the calendar, you get a non-assignable angular error.

Link to minimally-working plunker that reproduces the issue:

https://plnkr.co/edit/cxVK6ehXqjHEhunbhwlS

Steps to reproduce the issue:

Version of Angular, UIBS, and Bootstrap

Angular: reproduced on 1.6.1 & 1.6.4

UIBS: 2.5.0

Bootstrap: 3.3.7

omni-nasri commented 6 years ago

you need to reload page. proposed solution: vm.reloadRoute =reloadRoute; function reloadRoute(){ $window.location.reload(); } vm.reloadRoute();

dackmin commented 6 years ago

how does this have anything to do with the current issue ?