[CP Staging] Fix: Composer - Pointer returns to previous line when adding new line#39934
Conversation
|
Hey @mountiny, extra question - should cursor move at the start of the draft when going back to the report? It might not be the best UX. Sorry if that was already reported :D cursor.going.back.mov |
|
@mountiny The PR is ready for review 🔧 |
|
@kacper-mikolajczak Yep that is already handled elsewhere, the cursor changing is a bug |
mountiny
left a comment
There was a problem hiding this comment.
Thanks! Waiting for checklist now
|
@kacper-mikolajczak Could you please add a test step before item 3 that the user should switch to a different report or refresh the report? The specific bug is not reproducible otherwise. |
Reviewer Checklist
Screenshots/VideosAndroid: Native39934-android-native.mp4Android: mWeb Chrome39934-android-chrome.mp4iOS: Native39934-ios-native.mp4iOS: mWeb Safari39934-ios-safari.mp4MacOS: Chrome / Safari39934-web.mp4MacOS: Desktop39934-desktop.mp4 |
Julesssss
left a comment
There was a problem hiding this comment.
Thanks for the speedy work!
…acters-only-drafts Fix: Composer - Pointer returns to previous line when adding new line (cherry picked from commit f6ecad5)
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 1.4.61-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.61-8 🚀
|
Details
PR fixes #39836 by enabling app to save drafts that contains only whitespace characters, e.g. spaces or new lines
Fixed Issues
$ #39836
PROPOSAL:#39836 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.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 so 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
android.mp4
Android: mWeb Chrome
android-web.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios-web.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4