Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
Fix show in IE11
Browse files Browse the repository at this point in the history
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: microsoft/monaco-editor#96
  • Loading branch information
sandyarmstrong committed Aug 12, 2016
1 parent 8c2cd6d commit 578393d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/base/browser/dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ export function emmet<T extends HTMLElement>(description: string): T {

export function show(...elements: HTMLElement[]): void {
for (const element of elements) {
element.style.display = null;
element.style.display = '';
}
}

Expand Down

0 comments on commit 578393d

Please sign in to comment.