Skip to content

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 9, 2016
1 parent ae91d66 commit 27b9860
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 @@ -965,7 +965,7 @@ export function emmet<T extends HTMLElement>(description: string): T {

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

Expand Down

0 comments on commit 27b9860

Please sign in to comment.