You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Somehow the year/century and the day get switched during reload. If I send a post request with with this widget, the date is still 2023-11-15, only the displayed date seems to be wrong.
To Reproduce
Steps to reproduce the behavior:
Create custom
Click on '....'
Scroll down to '....'
See error
Expected behavior
A clear and concise description of what you expected to happen.
Console errors
No error on django console.
Mutations-Ereignisse sollten nicht mehr verwendet werden. Verwenden Sie MutationObserver stattdessen.
english:
Mutation-Events should not be used anymore. Use MutationObserver instead.
Setup Information (please complete the following information):
OS: Linux TuxedoOS (Ubuntu, KDE)
Browser: FireFox
Browser version: 119.0.1 (64-bit)
Python version: 3.10.13
Django version: 4.2.7
Bootstrap version: v5.3.0-alpha1
jQuery version: v3.6.0
[x] I have followed the [configuration instructions][configuration_page] and checked out the
[common error troubleshooting][troubleshooting_page] page.
Same problem with format DD/MM/YYYY. Only happens on Firefox, haven't found a solution yet. I'm gonna try to always send the data for the form in the form_kwargs["initial"], will report later.
Update for anyone facing this problem: adding attrs={"autocomplete": "off"}, whether on the fields in the form or in the settings, solves it. It prevents the browser from attempting to preserve user data on a soft-refresh, so the widget does not bug out when the format is different from the backend_date_format
Describe the problem
I created a custom DateField:
When I load the page, I get
and the widget shows "15.11.2022" as expected.
But after reload (F5) I get
the hidden input changes and the widget displays "20.11.2015"
After anew reload the hidden input shows
and the widget shows "20.11.2020".
After anew reload the hidden input shows
and the widget shows "20.11.2020".
Somehow the year/century and the day get switched during reload. If I send a post request with with this widget, the date is still 2023-11-15, only the displayed date seems to be wrong.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Console errors
english:
Mutation-Events should not be used anymore. Use MutationObserver instead.
Setup Information (please complete the following information):
[x] I have followed the [configuration instructions][configuration_page] and checked out the
[common error troubleshooting][troubleshooting_page] page.
[configuration_page]: https://monim67.github.io/django-bootstrap-datepicker-plus/configure/ -> PAGE NOT FOUND
[troubleshooting_page]: https://django-bootstrap-datepicker-plus.readthedocs.io/en/latest/Troubleshooting.html
The text was updated successfully, but these errors were encountered: