Skip to content

[iOS] Double dash in input field crash fix - #20584

Merged
rmarinho merged 3 commits into
dotnet:mainfrom
kubaflo:ios-double-dash-in-input-field-crash-fix
Mar 4, 2024
Merged

[iOS] Double dash in input field crash fix#20584
rmarinho merged 3 commits into
dotnet:mainfrom
kubaflo:ios-double-dash-in-input-field-crash-fix

Conversation

@kubaflo

@kubaflo kubaflo commented Feb 14, 2024

Copy link
Copy Markdown
Collaborator

Description of Change

Using the length of the text based on the value from the iOS's text input rather than a control. It is because of the system's autocorrection that converts some combinations of characters into other symbols.

Issues Fixed

Fixes #20439
Fixes #19954
Fixes #15937

Before After
crash.mov
fixed.mov

@kubaflo
kubaflo requested a review from a team as a code owner February 14, 2024 14:27
@ghost ghost added the community ✨ Community Contribution label Feb 14, 2024
@ghost

ghost commented Feb 14, 2024

Copy link
Copy Markdown

Hey there @kubaflo! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

Comment thread src/Controls/src/Core/Platform/iOS/Extensions/TextExtensions.cs
Comment thread src/Controls/src/Core/Platform/iOS/Extensions/TextExtensions.cs
using UITest.Appium;
using UITest.Core;

namespace Microsoft.Maui.AppiumTests.Issues

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

file-scoped namespace might be better

@rmarinho

Copy link
Copy Markdown
Member

/rebase

@github-actions
github-actions Bot force-pushed the ios-double-dash-in-input-field-crash-fix branch from 0fafc87 to 2be5aad Compare February 19, 2024 13:46
Comment thread src/Controls/src/Core/Platform/iOS/Extensions/TextExtensions.cs

@jsuarezruiz jsuarezruiz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you take a look to the failing tests? Let me know, If you want me to check them myself.

Comment thread src/Controls/src/Core/Platform/iOS/Extensions/TextExtensions.cs
@jfversluis jfversluis added the s/pr-needs-author-input PR needs an update from the author label Feb 20, 2024
@ghost

ghost commented Feb 20, 2024

Copy link
Copy Markdown

Hi @kubaflo. We have added the "s/pr-needs-author-input" label to this issue, which indicates that we have an open question/action for you before we can take further action. This PRwill be closed automatically in 14 days if we do not hear back from you by then - please feel free to re-open it if you come back to this PR after that time.

@kubaflo
kubaflo force-pushed the ios-double-dash-in-input-field-crash-fix branch from 2be5aad to 4059c37 Compare February 20, 2024 12:32
@kubaflo

kubaflo commented Feb 20, 2024

Copy link
Copy Markdown
Collaborator Author

@jsuarezruiz Sorry for the late response - I was pretty busy lately :)
I've added a new commit that fixes the tests and the bug

@jsuarezruiz

Copy link
Copy Markdown
Contributor

@jsuarezruiz Sorry for the late response - I was pretty busy lately :) I've added a new commit that fixes the tests and the bug

Don't worry, thanks for all your contributions. That test are passing now.

@Eilon Eilon added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Feb 21, 2024
@rmarinho

Copy link
Copy Markdown
Member

/azp run MAUI-UITests-public

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@rmarinho
rmarinho merged commit 6cb942e into dotnet:main Mar 4, 2024
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 4, 2024
@Eilon Eilon added area-controls-entry Entry and removed legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor labels May 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

7 participants