@@ -63,7 +63,7 @@ class SelectListRenderer implements IListRenderer<ISelectOptionItem, ISelectList
6363
6464 data . text . textContent = text ;
6565 data . detail . textContent = ! ! detail ? detail : '' ;
66- data . decoratorRight . innerText = ! ! decoratorRight ? decoratorRight : '' ;
66+ data . decoratorRight . textContent = ! ! decoratorRight ? decoratorRight : '' ;
6767
6868 // pseudo-select disabled option
6969 if ( isDisabled ) {
@@ -450,7 +450,7 @@ export class SelectBoxList extends Disposable implements ISelectBoxDelegate, ILi
450450 // ContextView dropdown methods
451451
452452 private showSelectDropDown ( ) {
453- this . selectionDetailsPane . innerText = '' ;
453+ this . selectionDetailsPane . textContent = '' ;
454454
455455 if ( ! this . contextViewProvider || this . _isVisible ) {
456456 return ;
@@ -902,7 +902,7 @@ export class SelectBoxList extends Disposable implements ISelectBoxDelegate, ILi
902902 }
903903
904904 private updateDetail ( selectedIndex : number ) : void {
905- this . selectionDetailsPane . innerText = '' ;
905+ this . selectionDetailsPane . textContent = '' ;
906906 const option = this . options [ selectedIndex ] ;
907907 const description = option ?. description ?? '' ;
908908 const descriptionIsMarkdown = option ?. descriptionIsMarkdown ?? false ;
@@ -912,7 +912,7 @@ export class SelectBoxList extends Disposable implements ISelectBoxDelegate, ILi
912912 const actionHandler = option . descriptionMarkdownActionHandler ;
913913 this . selectionDetailsPane . appendChild ( this . renderDescriptionMarkdown ( description , actionHandler ) ) ;
914914 } else {
915- this . selectionDetailsPane . innerText = description ;
915+ this . selectionDetailsPane . textContent = description ;
916916 }
917917 this . selectionDetailsPane . style . display = 'block' ;
918918 } else {
0 commit comments