fix: maintain native behavior when dragging links#24211
fix: maintain native behavior when dragging links#24211mountiny merged 1 commit intoExpensify:mainfrom samh-nl:fix/issue-24043
Conversation
|
@robertKozik Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Regarding test steps: on mobile one can't drag & drop a link or message text as this will cause a long press (which will show the context menu), therefore I have dragged the text within the composer. Please let me know if there is a more suitable method. |
|
I think that's all right. I'll proceed with the checklist on my side 🚀 |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - ChromeScreen.Recording.2023-08-07.at.16.52.03.movMobile Web - SafariiOS.-.web.movDesktopdesktop.moviOSios.-.native.movAndroidandroid.mov |
robertKozik
left a comment
There was a problem hiding this comment.
Test Well, let's push this forward
|
Bump |
|
Politely bumping again |
mountiny
left a comment
There was a problem hiding this comment.
Thanks! Sorry I was ooo
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.55-0 🚀
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.56-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.56-24 🚀
|
Details
When initiating a drag, the drag and drop overlay would previously be shown regardless of the type of content involved. This also applied to links and text, which is undesired as the native behavior should be maintained here.
Fixed Issues
$ #24043
PROPOSAL: #24043 (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)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
Web.Screen.Recording.2023-08-07.at.12.54.58.mp4
Mobile Web - Chrome
mWeb.chrome.Screen.Recording.2023-08-07.at.14.42.50.mp4
Mobile Web - Safari
mWeb.safari.Screen.Recording.2023-08-07.at.14.58.51.mp4
Desktop
Desktop.Screen.Recording.2023-08-07.at.12.58.01.mp4
iOS
Native.iOS.Screen.Recording.2023-08-07.at.14.54.31.mp4
Android
Native.android.Screen.Recording.2023-08-07.at.14.33.18.mp4