jquery - Stop Focus on input onChangeMonthYear of JqueryUI DatePicker -
in ios device got problem jquery ui datepicker
.
the problem facing click on button go prev or next month,
i got scrolled text-box(input) back. affect in landscape mode height smaller, if user wants change month has scroll month or year changing button exist.
i tried use onchangemonthyear
event should in not clear. suggestions helpful.
i think fiddle work perfectly.
if disable textbox , make enable it, not focus on textbox,
thus problem solved.
just write below code in js.
onchangemonthyear: function (year, month, element) { // prevent focus on change of month or year element.input.prop("disabled", true); window.settimeout(function () { element.input.prop("disabled", false); }, 100); },
Comments
Post a Comment