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

Flatpicker and bootstrap date picker requires full page refresh to show. #3084

Open
GEORGES-DTECH opened this issue Dec 17, 2024 · 7 comments

Comments

@GEORGES-DTECH
Copy link

GEORGES-DTECH commented Dec 17, 2024

When I load a Django form though as html partial the ie hx-get , date picker pops correctly in version 1.9.11 and below.Upgraded htmx 2 does not load the date picker until I refresh the full page.

@benjaminsampica
Copy link

benjaminsampica commented Dec 18, 2024

Could you share the initialization you have currently setup that is working in 1.9.11 (and not in 2.x) that will initialize these inputs after they are swapped in? It may be that the behavior around the swap you are targeting has changed slightly.

@MichaelWest22
Copy link
Contributor

The only thing I can see in https://htmx.org/migration-guide-htmx-1/ that could cause an issue is if you have something like hx-on= solving the date picker issue in v1 which needs updating to the new hx-on format. Also check any htmx extensions are upgraded as head-support extension could be in use to load the date picker's javascript dependency from the partial response.

@GEORGES-DTECH
Copy link
Author

GEORGES-DTECH commented Dec 19, 2024 via email

@GEORGES-DTECH
Copy link
Author

GEORGES-DTECH commented Dec 19, 2024 via email

@GEORGES-DTECH
Copy link
Author

GEORGES-DTECH commented Dec 19, 2024 via email

@GEORGES-DTECH
Copy link
Author

GEORGES-DTECH commented Dec 19, 2024 via email

@GEORGES-DTECH
Copy link
Author

GEORGES-DTECH commented Dec 20, 2024 via email

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

3 participants