ng2-ui / datetime-picker

Angular2 DateTime Picker
https://ng2-ui.github.io/#/datetime-picker
MIT License
121 stars 62 forks source link

issue/feature to close the popup when you go outside the div #103

Closed stefanaerts closed 7 years ago

stefanaerts commented 7 years ago

Now i have to click within the div to close the popup. How can i close the popup when i click outside the div?

allenhwkim commented 7 years ago

When you choose a date, it will close automatically. image

stefanaerts commented 7 years ago

Yes, but thats what i did not want,because then you have to click again to change the hour and minutes.So i put close-on-select=false.

stefanaerts commented 7 years ago

I could make the div having view hight 100% but then it does'nt look nice. I wil try to find solution and let you know.

stefanaerts commented 7 years ago

solved: I surrounded the div with another div having height:100vh image