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

iOS hangs when choosing to Select All text on an Editor when AutoSize = TextChanges #25940

Open
InquisitorJax opened this issue Nov 19, 2024 · 3 comments
Assignees
Labels
area-controls-editor Editor p/2 Work that is important, but is currently not scheduled for release platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@InquisitorJax
Copy link

InquisitorJax commented Nov 19, 2024

Description

When adding an Editor to the AutoSize property set to TextChanges... adding a bunch of text and then tapping the editor to make use of the "Select All" option from UITextView freezes the app:

Image

Steps to Reproduce

Craete the default new Maui app, and add an editor:

<Editor HorizontalOptions="Fill" BackgroundColor="Yellow" AutoSize="TextChanges"/>

When you type in a bunch of text, and the choose the "Select All" from the UITextView options, the app will freeze.

Full main page:

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="MauiApp2.MainPage">

        <VerticalStackLayout
            Padding="30,0"
            Spacing="25">
            <Image
                Source="dotnet_bot.png"
                HeightRequest="185"
                Aspect="AspectFit"
                SemanticProperties.Description="dot net bot in a race car number eight" />

            <Label
                Text="Hello, World!"
                Style="{StaticResource Headline}"
                SemanticProperties.HeadingLevel="Level1" />

            <Label
                Text="Welcome to &#10;.NET Multi-platform App UI"
                Style="{StaticResource SubHeadline}"
                SemanticProperties.HeadingLevel="Level2"
                SemanticProperties.Description="Welcome to dot net Multi platform App U I" />

            <Button
                x:Name="CounterBtn"
                Text="Click me" 
                SemanticProperties.Hint="Counts the number of times you click"
                Clicked="OnCounterClicked"
                HorizontalOptions="Fill" />

            <Editor HorizontalOptions="Fill" BackgroundColor="Yellow" AutoSize="TextChanges"/>
        </VerticalStackLayout>

</ContentPage>

Link to public reproduction project repository

No response

Version with bug

9.0.10 SR1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 18.1

Did you find any workaround?

Yes - see custom handler implementation in this issue

Relevant log output

@InquisitorJax InquisitorJax added the t/bug Something isn't working label Nov 19, 2024
@Ying-6
Copy link

Ying-6 commented Nov 19, 2024

This issue has been verified using Visual Studio 17.13 Preview 1(9.0.10 & 9.0.0 & 8.0.100). Can repro this issue on iOS platform.

@Ying-6 Ying-6 added s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage labels Nov 19, 2024
@formerlymisterhenson
Copy link

Maybe this can be fixed with the workaround mentioned in #17757 as this worked for me for a very similiar freezing issue (mark bigger chunks of text fast).

@PureWeen PureWeen added this to the .NET 9 Servicing milestone Nov 19, 2024
@PureWeen PureWeen added the p/2 Work that is important, but is currently not scheduled for release label Nov 19, 2024
@vishnumenon2684 vishnumenon2684 self-assigned this Nov 20, 2024
@InquisitorJax
Copy link
Author

I can confirm that the work-around fixes the issue - thanks @formerlymisterhenson :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-editor Editor p/2 Work that is important, but is currently not scheduled for release platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants