MOBILE-3833 editor: Fix RTE label
parent
790dfdfe82
commit
0144791242
|
@ -215,8 +215,12 @@ export class CoreEditorRichTextEditorComponent implements OnInit, AfterViewInit,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.labelObserver = new MutationObserver(() => this.ariaLabelledBy = label.getAttribute('id') ?? undefined);
|
const updateArialabelledBy = () => this.ariaLabelledBy = label.getAttribute('id') ?? undefined;
|
||||||
|
|
||||||
|
this.labelObserver = new MutationObserver(updateArialabelledBy);
|
||||||
this.labelObserver.observe(label, { attributes: true, attributeFilter: ['id'] });
|
this.labelObserver.observe(label, { attributes: true, attributeFilter: ['id'] });
|
||||||
|
|
||||||
|
updateArialabelledBy();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue