dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.63k stars 1.61k forks source link

Read only Editor is editable when Next from on screen keyboard #22079

Open DennisWelu opened 2 weeks ago

DennisWelu commented 2 weeks ago

Description

If you have a read only Editor after an Entry field with ReturnType="Next", the on-screen keyboard will both enter you into the Editor AND it will be editable. This only happens if focus is shifted from the on screen keyboard. Tap into the Editor directly and it works as you would expect.

Steps to Reproduce

Just add both an Entry and an Editor to your UI like this:

<VerticalStackLayout Spacing="25">
            <Entry Placeholder="This is editable" ReturnType="Next" />
            <Editor Placeholder="This is read only" IsReadOnly="True" />
</VerticalStackLayout>

Then run...

Tap into the Entry, see the on screen keyboard appear. Tap "Next".

Observe that you can now edit the read only Editor text.

Link to public reproduction project repository

https://github.com/DennisWelu/EditableReadOnlyEditor

Version with bug

8.0.20 SR4

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

No response

Did you find any workaround?

Not yet

Relevant log output

No response