Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextInput with RTL makes ViewPager jump between pages #878

Open
ezbzprog1 opened this issue Oct 3, 2021 · 1 comment
Open

TextInput with RTL makes ViewPager jump between pages #878

ezbzprog1 opened this issue Oct 3, 2021 · 1 comment

Comments

@ezbzprog1
Copy link

ezbzprog1 commented Oct 3, 2021

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

@astreet
Copy link
Contributor

astreet commented Oct 4, 2021

Hey @ezbzprog1, are you able to isolate this to a more specific issue and potentially propose a fix? To investigate it, I would recommend putting a breakpoint in the onScroll of the ViewPager to try to see what's triggering it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants