Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.

Commit d567058

Browse files
Merge pull request #77 from microsoftgraph/auto-complete-fix
Fixed graph operation autocomplete not showing up
2 parents 586858a + 6690aba commit d567058

File tree

4 files changed

+5
-21
lines changed

4 files changed

+5
-21
lines changed

dist/explorer.js

Lines changed: 1 addition & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/explorer.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/main-column.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<div id="graph-request-url" class="c-search" autocomplete="off" name="form1">
1919
<input [(ngModel)]="explorerValues.endpointUrl" (keydown)="endpointInputKeyDown($event)" role="combobox" aria-controls="auto-suggest-default-2" aria-autocomplete="both" aria-expanded="false" type="search" name="search-field" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
2020

21-
<div class="m-auto-suggest" id="auto-suggest-default-2" role="group">
21+
<div class="m-auto-suggest" #autoSuggest id="auto-suggest-default-2" role="group">
2222
<ul class="c-menu f-auto-suggest-scroll" aria-hidden="true" data-js-auto-suggest-position="default" tabindex="0" role="listbox"></ul>
2323
<ul class="c-menu f-auto-suggest-no-results" aria-hidden="true" data-js-auto-suggest-position="default" tabindex="0">
2424

src/app/main-column.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export class MainColumnComponent extends GraphExplorerComponent implements OnIni
9999

100100
mwf.ComponentFactory.create([{
101101
component: mwf.AutoSuggest,
102+
elements: [this._autoSuggestEl.element.nativeElement],
102103
callback: (autoSuggests) => {
103104
if (autoSuggests && (autoSuggests.length > 0)) {
104105
let autoSuggest = autoSuggests[0];
@@ -120,6 +121,7 @@ export class MainColumnComponent extends GraphExplorerComponent implements OnIni
120121

121122
@ViewChild('httpMethod', {read: ViewContainerRef}) _httpMethodEl;
122123
@ViewChild('graphVersion', {read: ViewContainerRef}) _graphVersionEl;
124+
@ViewChild('autoSuggest', {read: ViewContainerRef}) _autoSuggestEl;
123125

124126
methods = Methods;
125127
GraphVersions = AppComponent.Options.GraphVersions;

0 commit comments

Comments
 (0)