forked from CIT/Vmeda.Online
		
	MOBILE-3833 editor: Fix RTE label
This commit is contained in:
		
							parent
							
								
									790dfdfe82
								
							
						
					
					
						commit
						0144791242
					
				@ -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();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user