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

Not working with jQuery 3.5.1 #250

Open
dwilches opened this issue Jan 27, 2021 · 0 comments
Open

Not working with jQuery 3.5.1 #250

dwilches opened this issue Jan 27, 2021 · 0 comments

Comments

@dwilches
Copy link

Hello,

I have a project that uses jQuery 2.1.4, and foundation-datepicker was woirking ok.
But as that version of jQuery is very old (+5 yo) I tried updating to jQuery 3.5.1 and foundation-datepicker stopped working.

As I'm not familiar with the datepicker, I don't know how to troubleshoot it, but these are the 2 calls that we are doing in our code:

                    element.find("section#datepickers > div#begin")
                        .fdatepicker({
                            startDate: minDate,
                            endDate: maxDate,
                        })
                        .on("changeDate", function(event) { 
                        ....

And:

                    element.find("section#datepickers > div#begin")
                        .fdatepicker("setDate", date.toDate()).fdatepicker("update");

Also, besides jQuery we are loading jquery-migrate 3.3.2 to avoid breaking the rest of our project.

The version of foundation we are using is 5.5.1 in case it matters.

Thanks.

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

1 participant