date picker issue


Topic: date picker issue

Melody Song 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
  • User: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: Yes