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

Unable to open time picker from datetime picker in bootstrap #93

Open
anlx-sw opened this issue Apr 15, 2023 · 2 comments
Open

Unable to open time picker from datetime picker in bootstrap #93

anlx-sw opened this issue Apr 15, 2023 · 2 comments

Comments

@anlx-sw
Copy link

anlx-sw commented Apr 15, 2023

Describe the bug
I am unable to get the time picker to open from the datetime picker in a form. My issue is quite simmiluar to #92 .

When I click the "Select Time" button I can see the time menu expand downward until it is full size then it disappears. The icon then switches to the calendar icon instead of the clock and nothing else changes. All of the media files are being loaded, all other functionality appears to work. If I add the "sideBySide" option to the widget I can use both - and i will stick to this solution.

I don't use any modals - just regular django forms with crispy and htmx with a project based on django-cookiecutter.
I tried placing the "form media" in several places (base.html, directly above div containting form, directly within form tags etc.) I don't see any errors in script console.

I will stick to the "sideBySide" configuration - so this issue can be also directly closed from my point of view. but as I found a recent other issue concerning a simmilar problem i wanted to inform you.

@monim67
Copy link
Owner

monim67 commented Apr 15, 2023

Thanks for filing this issue, it is always huge help for others trying to use this widget. Unfortunately I can't reproduce this issue any way. Any help to reproduce the issue would be highly appreciated.

@anikwai
Copy link

anikwai commented Apr 18, 2023

I experienced the same issue when using jquery and mdb. In the browser console it says "caught TypeError: Cannot read properties of null (reading 'hasAttribute')
at i (index.js:181:32)
at Module.n (event-handler.js:16:11)
at o (bootstrap:19:22)
at bootstrap:83:10
at universalModuleDefinition:9:17
at universalModuleDefinition:10:2"

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