mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 03:01:51 +08:00
revert: "perf: disable accessibility for layout views" (#10649)
This commit is contained in:

committed by
GitHub

parent
4e54c676a3
commit
712a9f4848
@ -3,22 +3,10 @@ import { CoreTypes } from '../../core-types';
|
||||
import { View, CustomLayoutView, AddChildFromBuilder } from '../core/view';
|
||||
import { booleanConverter, getViewById } from '../core/view-base';
|
||||
import { Property } from '../core/properties';
|
||||
import { accessibilityEnabledProperty } from '../../accessibility/accessibility-properties';
|
||||
|
||||
export class LayoutBaseCommon extends CustomLayoutView implements LayoutBaseDefinition, AddChildFromBuilder {
|
||||
private _subViews = new Array<View>();
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
/**
|
||||
* mark accessible as false without triggering property change
|
||||
* equivalent to changing the default
|
||||
* TODO: Remove this when we have a more flexible API for declaring default property values per type of view
|
||||
*/
|
||||
this.style[accessibilityEnabledProperty.key] = false;
|
||||
}
|
||||
|
||||
public _addChildFromBuilder(name: string, value: any) {
|
||||
if (value instanceof View) {
|
||||
this.addChild(value);
|
||||
|
Reference in New Issue
Block a user