question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Textarea-autosize with error boolean

See original GitHub issue
  • I have searched the issues of this repository and believe that this is not a duplicate.

Please provide error boolean in textareaautosize component.

https://material-ui.com/api/textarea-autosize/

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
NishargShahcommented, Apr 26, 2022

Hey @siriwatknp

I already fixed that months ago, here is my solution.

<TextField
	id="standard-basic"
	placeholder="Standard"
	multiline
	error
	InputProps={{
	  inputComponent: TextareaAutosize,
	  inputProps: {
	    style: {
	      resize: "auto"
	    }
	  }
	}}
/>
3reactions
NishargShahcommented, May 17, 2021

NO

I need the same behavior of TextArea into TextAreaAutoSize, like when I am giving error prop to true in TextArea then its give me the nice red border but its not working on TextAreaAutoSize so I am asking for make error prop that works same as TextField

TextField

<TextField id="standard-basic" label="Standard" multiline error />

TextAreaAutoSize

 <TextareaAutosize aria-label="empty textarea" placeholder="Empty" error />

Codesandbox: https://codesandbox.io/s/damp-browser-31tju?file=/src/index.js

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - TextareaAutosize With Formik?
This is an error from the Lastpass plugin/extension. ... enterEventHandler($event: KeyboardEvent): boolean { $event.
Read more >
react-textarea-autosize
Start using react-textarea-autosize in your project by running `npm i ... cacheMeasurements, boolean, Reuse previously computed measurements ...
Read more >
Textarea Autosize React component - Material UI
The Textarea Autosize component gives you a textarea HTML element that automatically adjusts its height to match the length of the content within....
Read more >
Textarea
Autosize textarea uses react-textarea-autosize package. Textarea height will grow until maxRows ... Error as boolean – red border color. <Textarea error />.
Read more >
react-autosize-textarea
import ReactDOM from 'react-dom'; import TextareaAutosize from 'react-autosize-textarea'; ReactDOM.renderComponent( <TextareaAutosize {.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found