Andarist / react-textarea-autosize

<textarea /> component for React which grows with content

Home Page:http://andarist.github.io/react-textarea-autosize/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

value and defaultValue props

arifemir opened this issue · comments

No value and defaultValue props in component, how can i use with northstar textArea component

The issue is so vague that I don't understand the question

There is typescript error in the module and and creates this "default text area props cannot be given" problem

this code not run bec TS error for value props
<TextareaAutosize value={this.state.sharedNoteText} className='text-area-auto-size' cacheMeasurements onHeightChange={(sharedNoteHeight) => this.setState({sharedNoteHeight})} />

I used to have compulsory @ts-ignore
<TextareaAutosize //@ts-ignore value={this.state.sharedNoteText} className='text-area-auto-size' cacheMeasurements onHeightChange={(sharedNoteHeight) => this.setState({sharedNoteHeight})} />

Please always try to share a repro case in a runnable form - either by providing a git repository to clone or a codesandbox. OSS maintainers usually can't afford the time to set up the repro, even if exact steps are given.

I apologize for my inexperience, i am fixed and here is example for react-textarea-autosize with fluentui/northstar
https://codesandbox.io/s/sleepy-easley-mt0ef?file=/src/App.js

I still don't know what the issue is/was. This codesandbox doesn't use TS at all - and from what I got your issue was about TS.