Auto close the DatePicker after picking a date


Topic: Auto close the DatePicker after picking a date

drgorb pro asked 5 years ago

I would like the date picker to close immediately after the user selected a date and not require her to click on the close button. How can I do that?

allantra pro answered 2 years ago

Ended up on a similar thread and found the solution.  Try adding the following options to your 'myDatePickerOptions'   closeAfterSelect: true   Thanks.      

Michal Szymanski staff answered 5 years ago

It's not possible right now but maybe we'll include that method in next release.

allantra pro commented 2 years ago

Any update on this yet?

kumar.ishan answered 3 years ago

Hi, I tried a work around. just go to the date-picker file's html template and in div tag where we are defining all the calendar date objects just add in (click) event "showSelector=false"

Water Damage Network pro premium commented 2 years ago

will you provide more details?


Bartłomiej Malanowski staff pro premium commented 2 years ago

Water, I think Kumar just provided you a workardound ;) 


bhargavaev commented 3 months ago

will you provide more details?


Grzegorz Bujański staff commented 3 months ago

@bhargavaev
Now the date picker closes by default when you select a date. I understand that this is not the case with you? What MDB version are you currently using?


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No