Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3298797
D8035.id27384.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
820 B
Referenced Files
None
Subscribers
None
D8035.id27384.diff
View Options
diff --git a/web/chat/chat-input-text-area.react.js b/web/chat/chat-input-text-area.react.js
--- a/web/chat/chat-input-text-area.react.js
+++ b/web/chat/chat-input-text-area.react.js
@@ -60,9 +60,16 @@
}, [onChangePosition]);
React.useEffect(() => {
- updateHeight();
focusAndUpdateText();
// eslint-disable-next-line react-hooks/exhaustive-deps
+ }, []);
+
+ React.useEffect(() => {
+ updateHeight();
+ // We want to update the height when the text changes. We can't include
+ // updateHeight in the dep list because it causes a stack overflow... see
+ // comments on D8035 for more details
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [currentText]);
const onKeyDown = (event: SyntheticKeyboardEvent<HTMLTextAreaElement>) => {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 8:46 AM (21 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2534404
Default Alt Text
D8035.id27384.diff (820 B)
Attached To
Mode
D8035: [web][fix] Fixed cursor issue in the message editing
Attached
Detach File
Event Timeline
Log In to Comment