Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: date picker issue

Melody Song free asked 7 years ago


i selected a date,the picker dialog is closed,but if i switch to another window or browser tab,and switch back,the dialog will show again,like the tutorials page https://mdbootstrap.com/javascript/date-picker/

Mikołaj Smoleński staff answered 7 years ago


Hi Melody Song,

Please try to write longer version of initialization code:

$('.datepicker').pickadate({
 onClose: function(){
  $(document.activeElement).blur()
 }
});

instead of:
$('.datepicker').pickadate();

Regards



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: Yes
Tags