stream-chat-react icon indicating copy to clipboard operation
stream-chat-react copied to clipboard

Update Textarea props/ability to override inline height style

Open ambaldwin opened this issue 3 years ago • 0 comments

Problem: There is a hardcoded inline height property style (height: 57px !important) that's added to the textarea via the dependency and it’s a calculation based on two props that the dependency accepts - maxRows, minRows. Currently, our SDK does not give the option to utilize the minRows prop…if we gave access to this prop, then we can easily change this hardcoded style. Oh, also - the rows prop on ChatAutoComplete isn’t utilized anywhere in the textarea.

Proposed solution: this height is calculated in the dependency via the minHeight and maxHeight props. Edit our textarea component so it utilizes the minHeight prop. Right now we have a crazy combination of ‘grow’ and ‘rows’ props from the chat autocomplete component that go nowhere, so clean these up too. Maybe change the rows prop so it feeds into the minHeight prop of the external dependency.

ambaldwin avatar Mar 03 '22 17:03 ambaldwin