mirror of
				https://github.com/mdbootstrap/mdb-ui-kit.git
				synced 2025-11-04 01:47:35 +03:00 
			
		
		
		
	fix: Don't throw error if class is missing (fix #1254)
This commit is contained in:
		
							parent
							
								
									92b1fb1697
								
							
						
					
					
						commit
						c75f805a62
					
				| 
						 | 
				
			
			@ -314,15 +314,6 @@ const BaseInput = ($ => {
 | 
			
		|||
        } else if (this.$element.hasClass(requiredClass)) {
 | 
			
		||||
          found = true;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // error if not found
 | 
			
		||||
        if (!found) {
 | 
			
		||||
          $.error(
 | 
			
		||||
            `${this.constructor.name} element: ${Util.describe(
 | 
			
		||||
              this.$element
 | 
			
		||||
            )} requires class: ${requiredClass}`
 | 
			
		||||
          );
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user