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

Don't set the text on android if value matches #4992

Merged
merged 7 commits into from
Mar 2, 2022

Conversation

PureWeen
Copy link
Member

@PureWeen PureWeen commented Mar 1, 2022

Description of Change

On android if you set the text to the same value it causes the cursor to reset to the initial position. We fixed this once in Core but it broke again with the TextTransform changes

TextTransform is a little bit trickier to manage because we're modifying the text after it's been set on the platform control. This PR attempts to only restore the cursor for cases where the TextTransform is modifying the text. If the user is modifying the text then we just want it to fall back to whatever the default platform behavior is.

@PureWeen PureWeen enabled auto-merge (squash) March 1, 2022 22:09
Copy link
Contributor

@hartez hartez left a comment

Choose a reason for hiding this comment

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

Just need to log an issue for "typing lowercase letters into the middle of an Entry with TextTransform=UpperCase" thing.

@PureWeen PureWeen added the do-not-merge Don't merge this PR label Mar 1, 2022
@PureWeen PureWeen removed the do-not-merge Don't merge this PR label Mar 1, 2022
@PureWeen PureWeen requested a review from hartez March 1, 2022 23:57
@PureWeen PureWeen disabled auto-merge March 1, 2022 23:57
@PureWeen PureWeen enabled auto-merge (squash) March 2, 2022 00:06
@PureWeen PureWeen changed the title Don't set the text on android if values matches Don't set the text on android if value matches Mar 2, 2022
@PureWeen PureWeen merged commit c9149a3 into main Mar 2, 2022
@PureWeen PureWeen deleted the fix_cursor_reset_android branch March 2, 2022 02:45
@ghost ghost added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Jul 10, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 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-6.0.200-preview.14.2 Look for this fix in 6.0.200-preview.14.2! 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