-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Unable to select time when using DatetimePickerInput #96
Comments
Since this is working fine for me, I would start with looking at your browser console. Is there any error message showing up? I looked at your screen cast and and was a little bit puzzled because the time picker is sliding downwards from the date picker. I'm used to the time picker sliding over the date picker. You can check this behaviour at https://getdatepicker.com/4/. Which version of Bootstrap do you use? |
I have the same issue. I have reproduced this in Chrome, safari and Mozilla. Uploading Screen Recording 2023-06-14 at 11.08.19.mov… |
Hey guys, I've created a minimal example to check the issue for me: |
Hello Christian, many thanks for the quick response. |
You can use the "stepping" option:
This will allow users to scroll in ten minutes steps through the time picker. I added that also in the sample. |
Hi Christian, My bad, I had the following incorrect template: ` {% load i18n %} {% block inner %} {{ form|crispy }} {% endblock %} **Whereas, it should have been:** {% extends "blah/base.html" %} {% load i18n %} {% block head %} {% block inner %} {{ form|crispy }} {% endblock %} ` Many thanks for the 'stepping' suggestion! |
I got the same issue but doing that didn't solve it for me |
@dattpatel99 a lot of users reported it, I was unable to reproduce the issue. Do you have anything so that I can reproduce the issue? |
Hello christianwgd and monim67; I tested the https://github.com/christianwgd/date_time_picker_sample repository and everything functioned perfectly (including the time dropdown). So, I don't think that it's a browser issue. But when trying to recreate the same structure in my project had no success. To try to give you some insight into the problem, I cloned the Django-polls https://github.com/monim67/django-polls repository, then followed your https://django-bootstrap-datepicker-plus.readthedocs.io/en/latest/Walkthrough.html instructions, but in the end although the datepicker part worked, the time dropdown immediately snaps shut and then won't open again. |
I had the same error, after insertion from.media as below (inside in form):
all works :) |
Thank you baranma75, I tried your suggestion, but the time dropdown still keeps snapping shut. |
Ok, cloned your project and changed your question_form.html to look like this:
So move the javascript from head. Works for me like that. |
And maybe you should create a base template and take a look into the django-bootstrap4 docs how to use their templates. |
I checked on my own project. {{form.media}} must be in a div containing the form, then it works.
|
Please be aware that I splitted the form media to form.media.css (which should stay in head) and form.media.js. |
Many thanks Christian, I am working through your example and if I have any questions, I'll revert. |
I'm not sure what causes this issue, but the best workaround I found was to use the side-by-side option.
|
Describe the bug
When using DatetimePickerInput, I was not able to select the time by clicking on the clock icon under the calendar.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I should be able to select the time after clicking on the clock icon on the calendar drop down
Screenshots
![Screenshot from 2023-06-07 10-25-43](https://private-user-images.githubusercontent.com/125234596/243891862-96a157e6-7e8e-4cde-a2be-51aa939ea16a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NjA2NzMsIm5iZiI6MTczOTQ2MDM3MywicGF0aCI6Ii8xMjUyMzQ1OTYvMjQzODkxODYyLTk2YTE1N2U2LTdlOGUtNGNkZS1hMmJlLTUxYWE5MzllYTE2YS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QxNTI2MTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02NWFmYTNhZTQwZDc2YzgyYTdiZWE0MzVjMzNmYjlhMGIyZjFmNDQ0ZTQxYzZkNjc4ZWYwZDYxNjg2MDdhNWQ3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.dMcmsTWQLrS2B_yMquGDpFlpJOC9q2WGsw6VthRlgHA)
Setup Information (please complete the following information):
[yes] I have followed the configuration instructions and checked out the
common error troubleshooting page.
Full video:
Screencast from Rabu 07 Jun 2023 10:19:52 AM +08.webm
The text was updated successfully, but these errors were encountered: