<textarea /> component for React which grows with content
Hi! ### Condition `TextareaAutosize` does not work when - styled-components wraps `TextareaAutosize` AND - a state is used for value ### Symptom I can input a single letter, but not more. ### Minimal Reproduction ```tsx 'use client' import TextareaAutosize from 'react-textarea-autosize' import styled from 'styled-components' import { useState } from 'react' export default function Temp() { const [message, setMessage] = useState('') const Wrapper = styled.div`` // When I remove either Wrapper or state, it works. return ( <Wrapper> <TextareaAutosize value={message} onChange={(e) => setMessage(e.target.value)} /> </Wrapper> ) } ``` Is this a bug, or is there a solution? Thanks,
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be still under discussion. The issue was opened by jjangga0214 and has received 1 comments.