From 5a8fc2dabc6948fac6c194fdf7eca900c78f099d Mon Sep 17 00:00:00 2001 From: Matt Portune <59324545+mportune-bw@users.noreply.github.com> Date: Wed, 20 May 2020 17:23:59 -0400 Subject: [PATCH] Workaround for pasting into editor within scrollview (#913) --- src/Android/Renderers/CustomEditorRenderer.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Android/Renderers/CustomEditorRenderer.cs b/src/Android/Renderers/CustomEditorRenderer.cs index 6cb593513..edadb4c54 100644 --- a/src/Android/Renderers/CustomEditorRenderer.cs +++ b/src/Android/Renderers/CustomEditorRenderer.cs @@ -12,6 +12,15 @@ namespace Bit.Droid.Renderers public CustomEditorRenderer(Context context) : base(context) { } + + // Workaround for issue described here: + // https://github.com/xamarin/Xamarin.Forms/issues/8291#issuecomment-617456651 + protected override void OnAttachedToWindow() + { + base.OnAttachedToWindow(); + EditText.Enabled = false; + EditText.Enabled = true; + } protected override void OnElementChanged(ElementChangedEventArgs e) {