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

I just found out another crazy issue! #59

Open
frederikhors opened this issue Jun 18, 2023 · 3 comments
Open

I just found out another crazy issue! #59

frederikhors opened this issue Jun 18, 2023 · 3 comments
Labels
upstream Not actually an issue with this package

Comments

@frederikhors
Copy link
Contributor

I just found out another crazy issue!

REPL: https://svelte.dev/repl/c3a6591167c34bb48d28966fe83b22f2?version=3.59.1

If you click on the button "Toggle Flatpickr" the Flatpickr renders and works with date:

image

But if you use the mobile version of the browser and click the button two times to re-render it, it throws!

image

Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'tabIndex')
    at buildMonthSwitch (eval at handle_message (about:srcdoc:14:8), <anonymous>:1723:51)
    at jumpToDate (eval at handle_message (about:srcdoc:14:8), <anonymous>:1484:17)
    at Object.setDate (eval at handle_message (about:srcdoc:14:8), <anonymous>:2823:13)
    at $$self.$$.update (eval at handle_message (about:srcdoc:14:8), <anonymous>:3457:13)
    at update (eval at handle_message (about:srcdoc:14:8), <anonymous>:335:16)
    at flush (eval at handle_message (about:srcdoc:14:8), <anonymous>:299:21)

This happens in mobile only!

Why? What's the problem?

@frederikhors
Copy link
Contributor Author

Another crazy thing is it works if I use this date: 2023-05-30T04:31:16Z and does not work if I use this instead: 1948-05-28T10:37:43Z!

@frederikhors
Copy link
Contributor Author

I think the issue is this: flatpickr/flatpickr#2367.

Flatpickr seems abandoned today unfortunately.

@jacobmischka jacobmischka added the upstream Not actually an issue with this package label Dec 15, 2023
@RickyRivas
Copy link

Did you ever figure this out? Svelte Flatpickr on Sveltekit v2 doesn't work on mobile at all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Not actually an issue with this package
Projects
None yet
Development

No branches or pull requests

3 participants