Skip to content

Commit 570a2d8

Browse files
authored
Merge pull request microsoft#181257 from microsoft/merogge/udf
prevent `undefined` from appearing in `ariaLabel`
2 parents b7d4c1e + bf86c14 commit 570a2d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/editor/browser/widget/diffEditorWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,7 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE
12891289
}
12901290

12911291
private _updateAriaLabel(options: IEditorConstructionOptions): void {
1292-
let ariaLabel = options.ariaLabel;
1292+
let ariaLabel = options.ariaLabel ?? '';
12931293
if (this._options.accessibilityVerbose) {
12941294
ariaLabel += ariaNavigationTip;
12951295
} else if (ariaLabel) {

0 commit comments

Comments
 (0)