Coder Social home page Coder Social logo

Comments (6)

qodesmith avatar qodesmith commented on July 22, 2024

@spencerfinnell I'll have to try it out with an iPhone. I'll let you know what I find.

from datepicker.

Lambo232 avatar Lambo232 commented on July 22, 2024

I can confirm a similar problem. Works for my app on iphone 7s (ios11) but not on ipad (ios11). Also a problem on some Android devices eg. works OK on Samsung Galaxy 7 phone but not on Neos tablet. In my application (popup from icon rather than input element) the datepicker pop's up OK but unable to select either a date or the next/previous month buttons. Tried both chrome and native browser on Neos tablet with same result.

from datepicker.

Lambo232 avatar Lambo232 commented on July 22, 2024

OK, I think I have found the problem. The datepicker code is written using the "new" javascript ES6 constructs. A lot of mobile devices out there do not support ES6. You can test for ES6 with the following snip:

    var supportsES6 = function() {
        try {
            new Function("(a = 0) => a");
            return true;
        }
        catch (err) {
            return false;
        }
    };
    alert("ES6 Support = "+supportsES6());

The only solution I can see is to develop a version using the ES5 standard.

from datepicker.

qodesmith avatar qodesmith commented on July 22, 2024

@Lambo232 This library uses the minified datepicker.min.js file, which is all ES5. The issue is something different. I'm looking into it.

from datepicker.

Lambo232 avatar Lambo232 commented on July 22, 2024

Ah-ha, that explains some of the the issues that I have been having, I assumed the the minified version was ES6 as well. To try to find my problem I was using the debug version and that is when I had the ES6 issues, damn, I have just spent a couple of hours converting it to ES5 so it would run on the problem devices.

Anyway I have found the "bug" that was causing my problem. I will submit it as a new issue.

from datepicker.

qodesmith avatar qodesmith commented on July 22, 2024

I've pushed a fix to the master branch for iOS folks. Happy datepicking!

from datepicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.