question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[HOLD on #3381] Selecting, copying, and pasting text on web and desktop are weird and in inverted order

See original GitHub issue

If you haven’t already, check out our contributing guidelines for onboarding!


Upwork job: https://www.upwork.com/jobs/~0195a298f26a002c08

NOTE: We are only looking for proposals on fixing this directly in https://github.com/facebook/react-native. Example issue addressing this accessibility issue https://github.com/facebook/react-native/issues/30373 We are not looking for a work-around in our repo

Platform - version:
Web and Desktop.

Action Performed (reproducible steps): Attempt to select text across multiple chat inputs. You will find that it is difficult to select text across multiple chat inputs. Then, once you have managed to select multiple lines of text, try pasting that text. You will find that the order of the text has been inverted.

Expected Result: That it would be easy to select text across chat inputs and that when copying and pasting the text it would retain itss order.

Actual Result: The text is difficult to select and pastes in inverted order.

Notes/Photos/Videos: image

image

We use Flatlist for rendering the list of chat messages. We use the inverted prop which reverses the scroll direction on mobile. We then use react-native-web for web and desktop. The ideal solution would fix this upstream, either in React Native or react-native-web. You can see an example of the problem here: https://codesandbox.io/s/cold-wave-grzpj?file=/src/App.js

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:24 (21 by maintainers)

github_iconTop GitHub Comments

2reactions
mallenexpensifycommented, Apr 10, 2021

@puneetlath Nirav in Upwork proposed

I have reverse order of data instead of element I had to do change on the other three screens as I have changed the data order in the element that change is removed inverted from component and changed y position

https://user-images.githubusercontent.com/22508304/114251545-4479c400-9956-11eb-9726-50af816461fb.mov

Can you provide some feedback to share with Nirav?

2reactions
iwizniacommented, Mar 30, 2021

My current conclusion is that the approach to inversion inside React Native is pretty broken, affecting scroll + text highlight + A11y.

heh, that were my impressions too when I looked at this 😄

To clarify, ideally the fix would be merged into the react native code base. So it would be good to also check with the maintainers that the proposed solution is good for them (once we review it here).

Read more comments on GitHub >

github_iconTop Results From Across the Web

FlatList inverted prop ordering of elements causes copy/paste ...
[HOLD on #3381] Selecting, copying, and pasting text on web and desktop are weird and in inverted order Expensify/App#1341.
Read more >
Odd formatting when pasting text from web
My Word documents have some weird text formatting going on when pasting anything that's been copied from the web, and it happens randomly ......
Read more >
Solved: Copying and pasting text turns to gibberish - 10194796
Using Adobe Acrobat Pro DC as my default printer. When trying to copy and paste text from pdf to another app, the text...
Read more >
iOS 13 Makes Editing Text Easier - Computer Hardware, Inc.
Cut: To cut (copy and then delete) selected text, perform the copy gesture twice in quick succession. Paste: To paste the text you've...
Read more >
1. Desktop & Start Menu - Windows 10: The Missing Manual ...
If you'd prefer Windows not to track your most used items at all, open the Start menu; choose Settings→Personalization→Start; turn off “Show most...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found