Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

273
Views
¿Cómo desplazarse siempre hasta la parte inferior de TextArea para mostrar el texto más reciente en React?

Tengo un componente TextArea:

 <TextArea ref={this.textInput} disabled={this.props.disabled || false} growing growingMaxLines={3 || growingMaxLines} maxlength={characterLimit} height={scrollY} style={textAreaStyle} value={this.state.value || this.props.value} placeholder={this.props.placeholder} />

Y probé esto ( React Scroll to bottom of textarea ):

 constructor (props) { super(props) ... this.textInput = React.createRef() } componentDidUpdate () { ... this.textInput.current.scrollTop = this.textInput.current.scrollHeight }

Pero la barra de desplazamiento no se mueve hacia abajo y solo aparecen las primeras 3 líneas a medida que el usuario habla y el valor del texto crece. ¿Me estoy perdiendo de algo?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!