Merge pull request #3200 from NoelDeMartin/MOBILE-3833

MOBILE-3833 Fix RTE & tabs
main
Dani Palou 2022-03-24 11:19:18 +01:00 committed by GitHub
commit 750d979ce4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -23,6 +23,7 @@
border-bottom: 1px solid var(--stroke);
display: flex;
align-items: flex-end;
flex-shrink: 0;
ion-row {
width: 100%;

View File

@ -215,8 +215,12 @@ export class CoreEditorRichTextEditorComponent implements OnInit, AfterViewInit,
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'] });
updateArialabelledBy();
}
/**