mugifly / jquery-simple-datetimepicker

Date & time picker for jQuery, It's simple & clean.
http://mugifly.github.com/jquery-simple-datetimepicker
Other
260 stars 182 forks source link

iPad - can't close pop-up #143

Closed bobafifi closed 9 years ago

bobafifi commented 9 years ago

On iPad, calendar pop-ups stay open. Clicking outside (like on desktop) doesn't work on iPad. No way to close them. Maybe add a close 'X' in corner? Also, is there any way to disable the iPad keyboard from being activated? As it is now, whenever the calendar is activated, up comes the keyboard too. Other than that, no complaints. Thanks!

bobafifi commented 9 years ago

Got it! :-)

A. For iPad, you need to add "closeOnSelected": true Like so: $(function(){ $('*[name=date]').appendDtpicker({ "closeOnSelected": true }); });

B. To keep the keyboard from popping up on iPad, you just need to add readonly="true" to the HTML input field.