facebook / facebook/litho

TextInput with RTL makes ViewPager jump between pages

Open
#878 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
7.8k
Forks
768
PR merge metrics
No merged PRs in 30d

Description

Hi,
We need to support Hebrew in our app and we ran into a bug with the TextInput component.
I've added a link to a sample project which shows how to reproduce this bug easily.
my component tree is -
-Fragment
--ViewPager
---Page1
---Column
----TextInpit,Text
---Page2
---Column
----TextInpit,Text
---Page3
---Column
----TextInpit,Text
---Page4
---Column
----TextInpit,Text

When I click on the text input to start typing the ViewPager just automatically jumps to the last page(page 4).

I did some research and found it related to setting the TextInput to RTL combined with multiline=false.
You can see that the TextInput on page 2 is set to multiline = true and doesn't cause this problem.

Let me know if you need more information on how to reproduce it.
sample project -
https://github.com/ezbzprog1/LithoTest

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.