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,

enter image description here

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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -