From a51b00760a914587f5f17531cab1165fbf809d29 Mon Sep 17 00:00:00 2001 From: Vyrtsev Mikhail Date: Sun, 4 Aug 2019 17:45:55 +0300 Subject: [PATCH] fix: Comment reply/edit box resets if it gets out of view --- frontend/app/components/comment/comment.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/app/components/comment/comment.tsx b/frontend/app/components/comment/comment.tsx index ed80a559..8e26d963 100644 --- a/frontend/app/components/comment/comment.tsx +++ b/frontend/app/components/comment/comment.tsx @@ -542,10 +542,10 @@ export class Comment extends Component { ); } - if (this.props.inView === false) { + if (!props.editMode && this.props.inView === false) { const [width, height] = this.base ? [this.base.scrollWidth, this.base.scrollHeight] : [100, 100]; return ( -