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

Datepicker opens only by icon #104

Open
AlexShepa opened this issue Oct 30, 2023 · 1 comment
Open

Datepicker opens only by icon #104

AlexShepa opened this issue Oct 30, 2023 · 1 comment

Comments

@AlexShepa
Copy link

Hello, I'm bit of confused
Decided to update old project with DatePicker

The main problem, that datepicker only shows, when I click on calendar icon, but I want to see datepicker window when I click on input field.

I tried Quick Walkthrough Tutorial https://django-bootstrap-datepicker-plus.readthedocs.io/en/latest/Walkthrough.html and get same result of my trouble.

Here your working form and when you click on input field datepicker shown as same as calendar icon.

Can't tell what to do to reproduce, because I followed tutorial.

I suppose it is not a bug and I don't see option in widget, but in page can't find proper option

Expected behavior
When click on input field get datepicker open like here

Console errors

  • No error on django console.
  • Warning in Chrome console: datepicker-widget.js:46 [Deprecation] Listener added for a synchronous 'DOMNodeInserted' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.

Setup Information:

  • OS: Windows 10
  • Browser: Chrome
  • Browser version: 118.0.5993.118
  • Python version: 3.8.8
  • Django version 4.2.6
  • Bootstrap version 4
  • django-bootstrap-datepicker-plus 5.0.4
  • jQuery version 3.5.1

[v] I have followed the configuration instructions and checked out the
common error troubleshooting page.

@soasuk
Copy link

soasuk commented Jan 20, 2025

If you view the code on the example page you can see the allowInputToggle option.

"closed_date": DatePickerInput( options = { 'allowInputToggle': True } ),

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

2 participants