Remove TS ignore
This commit is contained in:
		
							parent
							
								
									7828b71c55
								
							
						
					
					
						commit
						c854c82d6e
					
				| 
						 | 
				
			
			@ -192,15 +192,13 @@
 | 
			
		|||
        if (e.key === "Enter" && !e.shiftKey) {
 | 
			
		||||
          send();
 | 
			
		||||
          // Resize back to auto
 | 
			
		||||
          // @ts-ignore
 | 
			
		||||
          e.target.style.height = "auto";
 | 
			
		||||
          input.style.height = "auto";
 | 
			
		||||
          e.preventDefault();
 | 
			
		||||
        }
 | 
			
		||||
      }}
 | 
			
		||||
      on:input={(e) => {
 | 
			
		||||
        // Resize the textarea to fit the content
 | 
			
		||||
        // @ts-ignore
 | 
			
		||||
        e.target.style.height = e.target.scrollHeight + "px";
 | 
			
		||||
        input.style.height = input.scrollHeight + "px";
 | 
			
		||||
      }}
 | 
			
		||||
      bind:this={input}
 | 
			
		||||
    />
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue