Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
EmiM committed Oct 23, 2023
1 parent aa96457 commit eb6fd8a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,10 @@ export const ChannelInputComponent: React.FC<ChannelInputProps> = ({
}

const onChangeCb = useCallback(
//this.style.height = "";this.style.height = this.scrollHeight + "px"
(e: React.ChangeEvent<HTMLTextAreaElement>) => {
if (inputState === INPUT_STATE.AVAILABLE) {
setMessage(e.target.value)
// Workaround for making textarea's height adapt to the content:
e.target.style.height = ''
e.target.style.height = e.target.scrollHeight + 'px'
}
Expand Down

0 comments on commit eb6fd8a

Please sign in to comment.