Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
try autosize text area
  • Loading branch information
adamsilverstein committed Sep 11, 2025
commit e14a73239b2a30d75072263e88865d6a4aec1e91
20 changes: 10 additions & 10 deletions packages/editor/src/components/collab-sidebar/comment-form.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
/**
* External dependencies
*/
import TextareaAutosize from 'react-autosize-textarea';

/**
* WordPress dependencies
*/
import { useState } from '@wordpress/element';
import {
__experimentalHStack as HStack,
Button,
TextareaControl,
} from '@wordpress/components';
import { __experimentalHStack as HStack, Button } from '@wordpress/components';
import { _x, __ } from '@wordpress/i18n';

/**
Expand All @@ -31,13 +32,12 @@ function CommentForm( { onSubmit, onCancel, thread, submitButtonText } ) {

return (
<>
<TextareaControl
__next40pxDefaultSize
__nextHasNoMarginBottom
<TextareaAutosize
value={ inputComment ?? '' }
onChange={ setInputComment }
onChange={ ( comment ) =>
setInputComment( comment.target.value )
}
label={ __( 'Comment' ) }
Comment thread
adamsilverstein marked this conversation as resolved.
Outdated
hideLabelFromVision
/>
<HStack alignment="left" spacing="3" justify="flex-start">
<Button
Expand Down