Skip to content

Commit

Permalink
v9.1.0 => Preps
Browse files Browse the repository at this point in the history
  • Loading branch information
TarekRaafat committed Apr 30, 2021
1 parent 53b0604 commit 9ab9660
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/Item.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ export default (item, index, config) => {
// If custom content set pass params
if (config.resultItem.content) config.resultItem.content(item, result);

// Return the result item element
return result;
};
1 change: 1 addition & 0 deletions src/components/List.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ export default (config) => {
// Append the DIV element as a child of autoComplete container
destination.insertAdjacentElement(config.resultsList.position, list);

// Return the results list element container
return list;
};
2 changes: 1 addition & 1 deletion src/controllers/dataController.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ export default (config, query) => {
}
});

// Returns rendered list
// Return matching results list
return results;
};
2 changes: 1 addition & 1 deletion src/services/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default (query, record, config) => {
const match = config.resultItem.highlight.render
? record.replace(query, item(config.resultItem.highlight.className, query))
: record;
// Returns the match
// Return the match
return match;
}
}
Expand Down

0 comments on commit 9ab9660

Please sign in to comment.