https://linear.app/comm/issue/ENG-10741/clearabletextinputissue
updateTextFromOldInput was firing additional update which deleted the text in text input
Depends on D15120
Differential D15121 Authored by angelika on Jul 24 2025, 8:23 AM.
Tags None Referenced Files
Details Summary https://linear.app/comm/issue/ENG-10741/clearabletextinputissue updateTextFromOldInput was firing additional update which deleted the text in text input Depends on D15120 Test Plan Use text input a lot. Try editing, check if drafts work. Also:
Diff Detail
Event Timelineangelika held this revision as a draft. Herald added subscribers: tomek, ashoat. · View Herald TranscriptJul 24 2025, 8:23 AM2025-07-24 08:23:38 (UTC+0) angelika added a child revision: D15122: [native][RN80][skip-ci] Fix media gallery.Jul 24 2025, 8:25 AM2025-07-24 08:25:27 (UTC+0) Harbormaster completed remote builds in B34780: Diff 48985.Jul 24 2025, 8:27 AM2025-07-24 08:27:23 (UTC+0) Harbormaster completed remote builds in B34964: Diff 49171.Jul 24 2025, 4:32 PM2025-07-24 16:32:35 (UTC+0) This revision is now accepted and ready to land.Jul 28 2025, 11:12 AM2025-07-28 11:12:32 (UTC+0) Harbormaster completed remote builds in B35229: Diff 49480.Aug 9 2025, 12:38 PM2025-08-09 12:38:00 (UTC+0) Comment Actions
There is more context on the linear issue: https://linear.app/comm/issue/ENG-10741/clearabletextinputissue
It looks like there is an additional onChangeText event in more recent versions of react-native. There is a code that clears the text input when a message is sent and it triggered onChangeText and it triggered updateTextFromOldInput unnecessarily with empty text and it caused to delete what's already in the text input. Harbormaster completed remote builds in B35495: Diff 49784.Aug 21 2025, 1:00 PM2025-08-21 13:00:26 (UTC+0) Closed by commit rCOMM093a92c7010e: [native][RN80][skip-ci] Fix clearable text input on ios. · Explain WhyAug 21 2025, 7:35 PM2025-08-21 19:35:08 (UTC+0) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 49480 |