mirror of
				https://github.com/mdbootstrap/mdb-ui-kit.git
				synced 2025-11-04 01:47:35 +03:00 
			
		
		
		
	Don't set floating label on leave
Navigation over empty fields using Tab should not bounce the labels
This commit is contained in:
		
							parent
							
								
									cc70cd63d8
								
							
						
					
					
						commit
						3537c0c28c
					
				| 
						 | 
					@ -14,7 +14,7 @@
 | 
				
			||||||
    if (typeof evt.which == "undefined") {
 | 
					    if (typeof evt.which == "undefined") {
 | 
				
			||||||
      return true;
 | 
					      return true;
 | 
				
			||||||
    } else if (typeof evt.which == "number" && evt.which > 0) {
 | 
					    } else if (typeof evt.which == "number" && evt.which > 0) {
 | 
				
			||||||
      return !evt.ctrlKey && !evt.metaKey && !evt.altKey && evt.which != 8;
 | 
					      return !evt.ctrlKey && !evt.metaKey && !evt.altKey && evt.which != 8 && evt.which != 9;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    return false;
 | 
					    return false;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user