mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Fix onKeyPress listener in AutoExpandingTextArea (#22040)
GitOrigin-RevId: 3fe870fe3aa16e6ed212ea4347a31e57444ad5e6
This commit is contained in:
committed by
Copybot
parent
2226cfd233
commit
2c6dd4e56b
@@ -142,7 +142,7 @@ export const ReviewPanelAddComment: FC<{
|
||||
name="message"
|
||||
className="review-panel-add-comment-textarea"
|
||||
onChange={handleChange}
|
||||
onKeyDown={handleKeyPress}
|
||||
onKeyPress={handleKeyPress}
|
||||
placeholder={t('add_your_comment_here')}
|
||||
value={content}
|
||||
disabled={submitting}
|
||||
|
||||
@@ -95,7 +95,7 @@ export const ReviewPanelCommentContent = memo<{
|
||||
name="content"
|
||||
className="review-panel-comment-input"
|
||||
onChange={handleChange}
|
||||
onKeyDown={handleKeyPress}
|
||||
onKeyPress={handleKeyPress}
|
||||
placeholder={t('reply')}
|
||||
value={content}
|
||||
/>
|
||||
|
||||
@@ -96,7 +96,7 @@ export const ReviewPanelMessage: FC<{
|
||||
className="review-panel-comment-input review-panel-comment-edit"
|
||||
onBlur={handleSubmit}
|
||||
onChange={e => setContent(e.target.value)}
|
||||
onKeyDown={e => {
|
||||
onKeyPress={e => {
|
||||
if (
|
||||
e.key === 'Enter' &&
|
||||
!e.shiftKey &&
|
||||
|
||||
Reference in New Issue
Block a user