nehakadam / AnyPicker

jQuery Picker Library for Android, iOS & Windows Phone. eg Date Picker, Time Picker, DateTime Picker, Custom Select etc

Home Page:https://nehakadam.github.io/AnyPicker/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disable auto hide

ashish-negi opened this issue · comments

Is there any way to disable auto hide? I want to show inline datetimepicker always. It automatically hides when I click anywhere on the document.

I am using the onBeforeHidePicker callback function to achieve this. I am throwing an error for specific condition to break auto close feature.

function cfOnBeforeHidePicker()
{
// disable auto close timepicker
if (CONDITION) {
throw new Error("Do not hide the timepicker. throw exception");
}
}

Is there any other solution?