From 4c28dd86a894963e7e19fcb95f7a4e487c675fbf Mon Sep 17 00:00:00 2001 From: farfromrefuge Date: Mon, 15 Apr 2024 15:44:23 +0200 Subject: [PATCH] fix: regression fix for #10482 where `WebView` would have `setFocusable` set to false `isUserInteractionEnabled` was true. This would prevent input with keyboard to work in `WebView` --- packages/core/ui/core/view/index.android.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/ui/core/view/index.android.ts b/packages/core/ui/core/view/index.android.ts index ce539ea2e6..a9bf698cc3 100644 --- a/packages/core/ui/core/view/index.android.ts +++ b/packages/core/ui/core/view/index.android.ts @@ -825,7 +825,8 @@ export class View extends ViewCommon { } [accessibilityEnabledProperty.setNative](value: boolean): void { - this.nativeViewProtected.setFocusable(!!value); + // ensure `accessibilityEnabled=false` does not disable focus for view with `isUserInteractionEnabled=true` + this.nativeViewProtected.setFocusable(!!value || this.isUserInteractionEnabled); if (value) { updateAccessibilityProperties(this); }