DateTimePicker icon indicating copy to clipboard operation
DateTimePicker copied to clipboard

Enable writing to input

Open filipskrivanek opened this issue 8 years ago • 2 comments

Hello,

I am trying found some solution which enable me write to input from keyboard. I didn`t found anything in API, is existing some solution ?

PS: I removed "readonly" from input but when I begin write to the input the DateTimePicker disappear.

Sorry for my English and Thanks for advice.

filipskrivanek avatar Jun 12 '16 12:06 filipskrivanek

I'm experiencing the same issue.

marcoarib avatar Jun 17 '16 23:06 marcoarib

This can be achieved commenting code Line 1449 to Line 1455.

$(document).on("keydown.DateTimePicker", function(e)
{
    if(! $('.dtpicker-compValue').is(':focus') && parseInt(e.keyCode ? e.keyCode : e.which) !== 9)
    {
        oDTP._hidePicker("");
    }
});

But you will have to validate input value separately if you allow such input.

nehakadam avatar Jun 20 '16 17:06 nehakadam