aavanzyl / ngx-tiny

Implementation of Light Weight Angular Components for Production Applications
https://aavanzyl.github.io/ngx-tiny
MIT License
7 stars 3 forks source link

Inline single-selection calendar disappears when selecting multiple times #18

Open mishelka opened 3 years ago

mishelka commented 3 years ago

Both in the online example and in my code the calendar disappears when selecting different dates multiple times. It's not a CSS issue, the element is removed from DOM completely.

To Reproduce Select some date and then another one in the last demo example.

Expected behavior Inline calendar should stay displayed always. When single selection date is set, the displayed date should switch to selected. If range selection is set, the expected behavior remains unchanged.

Screenshots image

Versions (please complete the following information):

mishelka commented 3 years ago

I've found temporary solution, set closeOnClickOutside and closeOnSelection properties to false. But the expected behavior was for them to be disabled automatically when the calendar was displayed inline.