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

Android has issues with Entry #16077

Closed
wants to merge 2 commits into from
Closed

Android has issues with Entry #16077

wants to merge 2 commits into from

Conversation

mattleibow
Copy link
Member

@mattleibow mattleibow commented Jul 10, 2023

Description of Change

It appears that setting EditText.InputType will trigger the TextChanged event. This could - and does - happen in #15058 when we no longer chain the mappers forcing the Text mapper to always run first.

The reason the order matters for us is that EditText is a generic text input control and the default mode is actually multiline. We remove the multiline support for Entry and this will always require setting the InputType. However, this is really a very short term solution as other things touch that property: IsPassword, Keyboard, IsReadOnly and even spell check things. As a result, we would have to move all those thing to happen after the text is set.

The simplest is to reorder the keys so that Text is the very first. When the InputType is set later, and thus triggering the TextChanged event, the platform view already has the text and thus the text change is updated.

After that PR lands, the order is really based on the order in the EntryHandler in Core. This PR will fix it for that PR so that Text is first and then everyone is happy.

@mattleibow
Copy link
Member Author

I will fix this correctly.

@mattleibow mattleibow closed this Jul 12, 2023
@mattleibow mattleibow deleted the dev/reorder-text branch July 12, 2023 15:26
@github-actions github-actions bot locked and limited conversation to collaborators Dec 8, 2023
@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants