Skip to content Skip to sidebar Skip to footer

Clockpicker: How To Prevent Click On Input To Open Clockpicker

I'm using weareoutman's clockpicker on my page. How to prevent click on input to show clockpicker or fade in overlay before clockpicker come to visible? I just wanted to fade in ov

Solution 1:

I have found a solution to the problem. Set click event off in input field.

clock.find('input').off('focus.clockpicker click.clockpicker');

I hope that this solution helps someone else also.

Solution 2:

With recent versions of library you can do something like this:

$('#inputId').clockpicker({
        beforeShow: functione() {            
            var condition = "...";
            if (!condition) {
                e.stopPropagation();
            }
        }            
    });

Post a Comment for "Clockpicker: How To Prevent Click On Input To Open Clockpicker"