Topic: date picker issue
                  
                  Melody Song
                  free
                  asked 8 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/
                
                  
                
                
                
                  
                  
                  
                    
                    
                
              
              
              
            
                      
                        Add comment
                      
                    
                  
                
                      
                      Mikołaj Smoleński
                      staff
                        answered 8 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
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