-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Many errors occurs with DatePicker in spa() mode #11967
Comments
This is the same problem that has been around for a long time. If you don't have dynamic interactions, such as |
@agencetwogether Hello! The main reason this problem happens is because, in SPA mode, date pickers are initialized only when they appear on the viewport. Then, when you use To avoid the bug, you can create a custom view for the date picker and replace following lines: Here is an example for further clarification: Screencast.2024-04-15.13.41.32.mp4If the proposed solution is acceptable to @danharrin, I can create a PR to fix it. |
The color picker doesn’t work properly in modal when SPA mode is enabled. |
DateTimePicker in native(true) and using spa() still has this issue. with lot of erros in js console.. |
Package
filament/filament
Package Version
v3.2.57
Laravel Version
v11.0.7
Livewire Version
v3.4.9
PHP Version
PHP 8.2.16
Problem description
I split my form in multi sections, in first one, Select and Datepicker are
->native(false)
and->live()
to permit to see a third component (another Select) when values are set.When I choose an option on first Select, many errors occur in browser console
Same problem when I edit a record, when I change option, same errors appear
->native(false)
of all Datepicker, no errors but I need minDate, maxDate etc.->spa()
inAdminPanelProvider
, no errors->spa()
erros occur too
Expected behavior
No error should appears
Steps to reproduce
You can see this problem by cloning reproduction repository
Reproduction repository
https://github.com/agencetwogether/spa-datepicker
Relevant log output
No response
Donate 💰 to fund this issue
The text was updated successfully, but these errors were encountered: