bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

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

Open dackmin opened this issue 8 years ago • 2 comments

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

dackmin avatar Jun 15 '17 08:06 dackmin

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

omni-nasri avatar Jan 10 '18 11:01 omni-nasri

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

dackmin avatar Jan 10 '18 15:01 dackmin