revert: "perf: disable accessibility for layout views" (#10649)

This commit is contained in:
Dimitris-Rafail Katsampas
2024-11-19 05:49:44 +02:00
committed by GitHub
parent 4e54c676a3
commit 712a9f4848
6 changed files with 10 additions and 22 deletions

View File

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