xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.64k stars 1.88k forks source link

When We set 'contenteditable=false inside contenteditable=true block' the contenteditable=false not working properly on UWP platform #15758

Closed HemalathaDuraisamy closed 1 year ago

HemalathaDuraisamy commented 1 year ago

When We set 'contenteditable=true as parent and contenteditable=false as child element' the contenteditable=false not working properly on UWP platform. Its able to edit the content on child element.

Description

Steps to Reproduce

  1. Run the attached sample
  2. Click and type the second line ( I have set contenteditable=false )
  3. The text will be added in the second line

Expected Behavior

When focus on the child block and type the text, but do not add it.

Actual Behavior

When focus on the child block and type the text, the text will be added.

Basic Information

Simple sample link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Hybrid667048676

We created a video for illustrating the same and it can be downloaded from the below links, https://www.syncfusion.com/downloads/support/directtrac/general/ze/UWP-450515621

jfversluis commented 1 year ago

I would think that this also happens when you create a UWP app without Xamarin.Forms and thus this is probably a bug with them. Please confirm if this also happens in a UWP app without using Xamarin.Forms.

In either case, I'm not sure if this will be fixed still during the lifetime of Xamarin.Forms that is left.

HemalathaDuraisamy commented 1 year ago

We have been able to reproduce the same issue "When We set 'contenteditable=false inside contenteditable=true block' the contenteditable=false not working properly " on UWP app without using Xamarin Forms. Kindly ensure and provide suggestions for resolving the issue.

UWP sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/WebviewSample1037629117

jfversluis commented 1 year ago

In that case you probably want to check with them as this is not something that we can do anything about. Assuming that UWP uses the WebView2 component, you might want to try this repository: https://github.com/MicrosoftEdge/WebView2Feedback

HemalathaDuraisamy commented 1 year ago

We reported the issue with Webview2, but the Webview2 team stated that it was not related to our side. However, the issue was replicated on the Xamarin hybrid WebView UWP platform and the UWP app without Xamarin Forms. Can you please provide suggestions on how to resolve the issue?