mirror of
				https://github.com/mdbootstrap/mdb-ui-kit.git
				synced 2025-11-04 09:57:36 +03:00 
			
		
		
		
	fix: continuous on change trigger for date inputs (#1325)
$element.val() !== $element.attr("value") are never be the same on inputs with type date. Value will be just empty.
			
			
This commit is contained in:
		
							parent
							
								
									cf06aa783e
								
							
						
					
					
						commit
						687cb32e15
					
				| 
						 | 
					@ -61,7 +61,7 @@ const Autofill = ($ => {
 | 
				
			||||||
          let $inputs = $(event.currentTarget)
 | 
					          let $inputs = $(event.currentTarget)
 | 
				
			||||||
            .closest("form")
 | 
					            .closest("form")
 | 
				
			||||||
            .find("input")
 | 
					            .find("input")
 | 
				
			||||||
            .not("[type=file]");
 | 
					            .not("[type=file], [type=date]");
 | 
				
			||||||
          focused = setInterval(() => {
 | 
					          focused = setInterval(() => {
 | 
				
			||||||
            $inputs.each((index, element) => {
 | 
					            $inputs.each((index, element) => {
 | 
				
			||||||
              let $element = $(element);
 | 
					              let $element = $(element);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user