mirror of
				https://github.com/NativeScript/NativeScript.git
				synced 2025-11-04 12:58:38 +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 {
 | 
						[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) {
 | 
							if (value) {
 | 
				
			||||||
			updateAccessibilityProperties(this);
 | 
								updateAccessibilityProperties(this);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user