ng2-ui / datetime-picker

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

close popup #12

Closed 0cv closed 7 years ago

0cv commented 8 years ago

When we have a datetime, we must set close-on-select to false to let users time to select both a date and a time. But the only way to close the popup afterwards seems when clicking with the mouse somewhere outside the popup. It would be good to have other possibilities such as when Escape is clicked. Also when the blur event occurs on the input (through a tab for instance).

allenhwkim commented 8 years ago

Thanks for using this module.

Added Escape key. Tried blur event, but was not successful.

0cv commented 8 years ago

maybe blur event does not make too much sense after all. Because there are several input in the popup itself so it would be hard to monitor all of them ...

Some additional ideas:

allenhwkim commented 8 years ago

I am going to discuss more about this topic, which will not be implemented immediately.