File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
packages/lit-dev-content/src/components Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -242,7 +242,6 @@ export class LitDevSearch extends LitElement {
242
242
243
243
update ( changed : PropertyValues < this> ) {
244
244
if ( ! this . _searchText && this . _inputEl ) {
245
- console . log ( this . _inputEl . value ) ;
246
245
// this is required on hydration to make sure we don't blow away the
247
246
// input text due to the `live` directive which is necessary to prevent
248
247
// issues with typing on the virtual keyboard in Safari on iOS.
@@ -343,7 +342,7 @@ export class LitDevSearch extends LitElement {
343
342
. then ( ( searchIndexJson ) => {
344
343
// Minisearch intialization config must exactly match
345
344
// `/lit-dev-tools-cjs/src/search/plugin.ts` Minisearch options.
346
- return ( LitDevSearch . _siteSearchIndex =
345
+ LitDevSearch . _siteSearchIndex =
347
346
Minisearch . loadJSON < UserFacingPageData > ( searchIndexJson , {
348
347
idField : 'id' ,
349
348
fields : [ 'title' , 'heading' , 'text' ] ,
@@ -353,7 +352,9 @@ export class LitDevSearch extends LitElement {
353
352
prefix : true ,
354
353
fuzzy : 0.2 ,
355
354
} ,
356
- } ) ) ;
355
+ } ) ;
356
+
357
+ return LitDevSearch . _siteSearchIndex ;
357
358
} ) ;
358
359
LitDevSearch . _loadingSearchIndex = searchIndexPromise ;
359
360
You can’t perform that action at this time.
0 commit comments