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 <walkerrunpdx@gmail.com>
This commit is contained in:
farfromrefuge
2024-04-15 19:29:12 +02:00
committed by GitHub
parent adb4e9d419
commit 92b2ff83a0

View File

@ -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);
}