TextField: minor type fix
This commit is contained in:
		
							parent
							
								
									994edfa22c
								
							
						
					
					
						commit
						189662b9e0
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -28,14 +28,14 @@ const TextField: Component<TextFieldProps> = (props) => {
 | 
			
		|||
 | 
			
		||||
  createEffect(() => {
 | 
			
		||||
    if (hasContent()) {
 | 
			
		||||
      field.classList.add("float-label");
 | 
			
		||||
      field!.classList.add("float-label");
 | 
			
		||||
    } else {
 | 
			
		||||
      field.classList.remove("float-label");
 | 
			
		||||
      field!.classList.remove("float-label");
 | 
			
		||||
    }
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  onMount(() => {
 | 
			
		||||
    setHasContent(input.value.length > 0);
 | 
			
		||||
    setHasContent(input!.value.length > 0);
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  const onInputChange = (e: { currentTarget: HTMLInputElement }) => {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue