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

Text needs to be set before other properties #16116

Merged
merged 3 commits into from
Jul 19, 2023
Merged

Conversation

mattleibow
Copy link
Member

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.

This PR is the correct fix that was in #16077

@mattleibow
Copy link
Member Author

@rachelkang this PR is taking longer than expected: #16200

Can we merge this one and I will fix the tests in that one?

Copy link
Member

@rachelkang rachelkang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mattleibow mattleibow merged commit 7e91b75 into main Jul 19, 2023
@mattleibow mattleibow deleted the dev/android-entry-text branch July 19, 2023 13:52
@samhouts samhouts added legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor area-controls-editor Editor area-controls-entry Entry platform/android 🤖 labels Jul 19, 2023
@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
@samhouts samhouts added the fixed-in-8.0.0-preview.7.8842 Look for this fix in 8.0.0-preview.7.8842! label Aug 2, 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.

4 participants