-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
The problem
When using the inverted prop with FlatList text is pasted in backwards order. For example if the list (after inversion) is:
- 1
- 2
- 3
- 4
Copy and pasting it will result in:
- 4
- 3
- 2
- 1
How to reproduce
Simplified test case: https://codesandbox.io/s/cold-wave-grzpj?file=/src/App.js
Steps to reproduce:
- Create a list using
FlatList - Apply the
invertedprop - Note the order of some list items and copy them
- Paste them and note that the order is backwards from what was displayed
Expected behavior
I would expect that when pasted the list would retain the order that is shown on the screen.
Environment (include versions). Did this work in previous versions?
- React Native for Web (version): 0.13.18
- React (version): 16.14.0
- Browser: Chrome, Safari, Firefox
Additional context
The problem seems to have to do with the fact that when the inverted prop is applied, the html elements are still in the original order and the inversion is done via css flex-direction: column-reversed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels