uib-datepicker-popup throws an error by clicking outsite of the popup when is-open expression is a method or a multiple boolean condition
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:
- Toggle calendar with button
- Then click outside
- Open console
- Enjoy 😄
Version of Angular, UIBS, and Bootstrap
Angular: reproduced on 1.6.1 & 1.6.4
UIBS: 2.5.0
Bootstrap: 3.3.7
you need to reload page. proposed solution: vm.reloadRoute =reloadRoute; function reloadRoute(){ $window.location.reload(); } vm.reloadRoute();
how does this have anything to do with the current issue ?