Hi
I’m trying to use a textarea type React element in my app. However, if I set the ‘value’ property on the component to any string, I am then prevented from editing the text in the textarea. It seems to be locked to whatever the ‘value’ property is set to originally. This seems to be the case if ‘value’ is a fixed string or a variable in curly braces.
I would expect the ‘value’ property to update as I type new text. Is this not how it works? My code is as follows:
<Popover id="options-popover">
<List>
<ListInput
ref={this.jsonlistinputref}
value="Test Value"
onInput={(e) => this.statejson = e.target.value}
label="JSON"
type="textarea"
placeholder="Insert JSON State Data"
>
</ListInput>
<ListButton title="Update" onClick={this.updateJSON.bind(this)}/>
</List>
</Popover>
Thanks.
Mark