mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-03 03:28:27 +08:00
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:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user