fixes #97 calendar stays open while selecting dates