Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date disabled not work on mobile #19

Open
rampo83 opened this issue Dec 17, 2019 · 1 comment
Open

Date disabled not work on mobile #19

rampo83 opened this issue Dec 17, 2019 · 1 comment

Comments

@rampo83
Copy link

rampo83 commented Dec 17, 2019

Hi, I'm using this control in a booking-like project and I see that on mobile devices (or in mobile simulator in browsers like firefox and chrome) the date we set as disabled are shown as enabled. Why?

So I inspect the javascript code ad I found two lines like this:

....
 if ( settings.dateDisabled != undefined && 'ontouchstart' in window === false ) {
.....

So I ask myself "why it does not sohw disabled dates on mobile????". I put the part "&& 'ontouchstart' in window === false" in a comment and upload modified javascript.

The question is: why do you insert this code? What would go wrong without "&& 'ontouchstart' in window === false"? I test my form with edited js and it seems to work like befors, with the advantage that now works correctly also on moblile visualization.

Some comments about this?

Thank you!

Fabio

@rampo83 rampo83 changed the title Date disablet not work on mobile Date disabled not work on mobile Dec 17, 2019
@ratnadip-ss
Copy link

I disabled && 'ontouchstart' in window === false but still its not working on mobile devices, kindly help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants