Skip to content

Commit 3d6731c

Browse files
committed
handle suggestions
1 parent 5d9c5c2 commit 3d6731c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/lit-dev-content/src/components/litdev-search.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@ export class LitDevSearch extends LitElement {
242242

243243
update(changed: PropertyValues<this>) {
244244
if (!this._searchText && this._inputEl) {
245-
console.log(this._inputEl.value);
246245
// this is required on hydration to make sure we don't blow away the
247246
// input text due to the `live` directive which is necessary to prevent
248247
// issues with typing on the virtual keyboard in Safari on iOS.
@@ -343,7 +342,7 @@ export class LitDevSearch extends LitElement {
343342
.then((searchIndexJson) => {
344343
// Minisearch intialization config must exactly match
345344
// `/lit-dev-tools-cjs/src/search/plugin.ts` Minisearch options.
346-
return (LitDevSearch._siteSearchIndex =
345+
LitDevSearch._siteSearchIndex =
347346
Minisearch.loadJSON<UserFacingPageData>(searchIndexJson, {
348347
idField: 'id',
349348
fields: ['title', 'heading', 'text'],
@@ -353,7 +352,9 @@ export class LitDevSearch extends LitElement {
353352
prefix: true,
354353
fuzzy: 0.2,
355354
},
356-
}));
355+
});
356+
357+
return LitDevSearch._siteSearchIndex;
357358
});
358359
LitDevSearch._loadingSearchIndex = searchIndexPromise;
359360

0 commit comments

Comments
 (0)