Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 92b2ff8

Browse files
fix: regression fix for #10482 (#10518)
where `WebView` would have `setFocusable` set to false `isUserInteractionEnabled` was true. This would prevent input with keyboard to work in `WebView` Co-authored-by: Nathan Walker <[email protected]>
1 parent adb4e9d commit 92b2ff8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/ui/core/view/index.android.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,8 @@ export class View extends ViewCommon {
825825
}
826826

827827
[accessibilityEnabledProperty.setNative](value: boolean): void {
828-
this.nativeViewProtected.setFocusable(!!value);
828+
// ensure `accessibilityEnabled=false` does not disable focus for view with `isUserInteractionEnabled=true`
829+
this.nativeViewProtected.setFocusable(!!value || this.isUserInteractionEnabled);
829830
if (value) {
830831
updateAccessibilityProperties(this);
831832
}

0 commit comments

Comments
 (0)