From 27b9860c79d726b632531ef15e934f5ce2e78aa5 Mon Sep 17 00:00:00 2001 From: Sandy Armstrong Date: Mon, 8 Aug 2016 09:30:54 -0700 Subject: [PATCH] Fix show in IE11 Setting `element.style.display` to `null` in IE11 has no effect. So if the suggest widget was hidden for some reason, and then shown again, it just stayed hidden. This issue also prevented the "No suggestions" message from displaying. Fixes: https://github.com/Microsoft/monaco-editor/issues/96 --- src/vs/base/browser/dom.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/base/browser/dom.ts b/src/vs/base/browser/dom.ts index 0203c04e1242e..6e429d414710f 100644 --- a/src/vs/base/browser/dom.ts +++ b/src/vs/base/browser/dom.ts @@ -965,7 +965,7 @@ export function emmet(description: string): T { export function show(...elements: HTMLElement[]): void { for (let element of elements) { - element.style.display = null; + element.style.display = ''; } }