[CP Stag] Fix pasting text into main composer#39177
[CP Stag] Fix pasting text into main composer#39177thienlnam merged 6 commits intoExpensify:mainfrom
Conversation
1582eae to
83d34a5
Compare
|
Tagging #36071 for tracking. |
|
@Skalakid Can you merge main here? |
Reviewer Checklist
Screenshots/VideosAndroid: NativeiOS: NativeiOS: mWeb SafariScreen.Recording.2024-03-31.at.8.14.02.PM.movMacOS: Chrome / SafariScreen.Recording.2024-03-31.at.8.11.52.PM.movMacOS: DesktopScreen.Recording.2024-04-04.at.9.51.33.PM.mov |
|
@BartoszGrajdek Android mWeb is not fixed. |
Screen.Recording.2024-03-31.at.8.19.59.PM.mov |
|
@shubham1206agra I'll take a look into all of your comments later today 👀 |
|
@shubham1206agra it doesn't work in case you try to paste the text copied from your computer into the simulator/emulator. If you paste the text you copied from the device you use for testing, everything works |
|
Let me confirm this with an ad-hoc build. |
This comment has been minimized.
This comment has been minimized.
|
@thienlnam can you run a new ad-hoc build, please? |
|
Kicked off another build |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
|
@thienlnam Please review and merge. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…sting-to-composer Fix pasting text into main composer (cherry picked from commit 93e9719)
|
Tested here |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.60-13 🚀
|

Details
This PR fixes problem with extra line breaks and cursor positioning when pasting text into main composer with LIve Markdown Input.
Fixed Issues
$ #39006
PROPOSAL:
Tests
Offline tests
Same as Tests
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
N/A
Android: mWeb Chrome
chrome.mov
iOS: Native
N/A
iOS: mWeb Safari
safari.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov