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

fix(iOS): textbox selection clear button #18522

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ajpinedam
Copy link
Contributor

GitHub Issue (If applicable): closes unoplatform/Uno.Themes#1458

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

When the iOS selection in the TextBox occurs, an exception is sometimes raised, causing the clear button textbox not to show.

What is the new behavior?

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

@ajpinedam ajpinedam requested a review from Youssef1313 October 21, 2024 01:20
@ajpinedam ajpinedam self-assigned this Oct 21, 2024
@github-actions github-actions bot added the platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform label Oct 21, 2024
@@ -51,7 +51,10 @@ protected override Size MeasureOverride(Size availableSize)

for (int i = 0; i < count; i++)
{
var view = Children[i];
if (Children[i] is not { } view)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see situations where one of the children is null, causing the app to behave wrongly. More specifically when tapping inside an iOS TextBox.

@unodevops
Copy link
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-18522/index.html

@unodevops
Copy link
Contributor

🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-18522/index.html

@@ -26,6 +26,11 @@ public IEnumerable<View> GetChildren()

protected Size MeasureChildOverride(View view, Size slotSize)
{
if (view is null)
{
Copy link
Member

Choose a reason for hiding this comment

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

@MartinZikmund Looks like a proper fix may be needed :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform
Projects
None yet
3 participants