fix for ui-bootstrap issue

Working fix/hack for Issue #67.

Has one drawback, which is that you have to click on the date twice to re-open the drop down once, but much better than NOT working at all.