Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
tomickigrzegorz committed Aug 16, 2020
1 parent fc15071 commit 54fe8d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ const options = {
// into the input field, in this case the text
// from the <p> element
return `
<li class="autocomplete-item loupe" role="option" aria-selected="false" tabindex="-1">
<li class="autocomplete-item loupe" role="option" aria-selected="false">
<p>${el.name.replace(regex, (str) => `<b>${str}</b>`)}</p>
</li>`;
});
Expand Down Expand Up @@ -204,7 +204,7 @@ onResults: (matches, input) => {
.sort((a, b) => a.name.localeCompare(b.name))
.map(el => {
return `
<li class="autocomplete-item loupe" role="option" aria-selected="false" tabindex="-1">
<li class="autocomplete-item loupe" role="option" aria-selected="false">
<p>${el.name.replace(regex, (str) => `<b>${str}</b>`)}</p>
</li>`;
});
Expand Down Expand Up @@ -255,7 +255,7 @@ window.addEventListener('DOMContentLoaded', function () {
.sort((a, b) => a.name.localeCompare(b.name))
.map(el => {
return `
<li class="autocomplete-item loupe" role="option" aria-selected="false" tabindex="-1">
<li class="autocomplete-item loupe" role="option" aria-selected="false">
<p>${el.name.replace(regex, (str) => `<b>${str}</b>`)}</p>
</li>`;
}).join('');
Expand Down

0 comments on commit 54fe8d5

Please sign in to comment.