RobinHerbots / Inputmask

Input Mask plugin
https://robinherbots.github.io/Inputmask/
MIT License
6.37k stars 2.17k forks source link

Bootstrap Datepicker Cleared by Mask #571

Open Vyeche opened 10 years ago

Vyeche commented 10 years ago

Hi,

I have a situation where my users need to type or choose a date using a date picker. They want both.

I'm using bootstrap date picker: http://www.eyecon.ro/bootstrap-datepicker/

I have a mask example of: $('#selector').inputmask({ mask: "m/d/y", clearMaskOnLostFocus: false });

When I hover over the date field, my values chosen via datepicker disappear and replaced with the either an empty mask or whatever values a previously typed.

Vyeche commented 10 years ago

I found a temporary solution: $('#selector').inputmask("m/d/y", { clearIncomplete: false, clearMaskOnLostFocus: false, showMaskOnFocus: false, showMaskOnHover: false });

RobinHerbots commented 10 years ago

@Vyeche,

Can you make a jsfiddle which shows the problem. This is easier to verify and to fix the problem.

best regards, Robin

adlbtt commented 9 years ago

Hi,

I have using a jquery datepicker. when I select a date from date picker it appears in the input fields but calender switch to today's date and year not remain on the same place where I have selected date. This is happening only because of I am using inputmask. If I remove it it works fine.

Thanks in advance.