Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 17, 2024
1 parent 5db79bc commit 083de71
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/renderer/src/stories/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export class Search extends LitElement {
const listItemElement = document.createElement("li");
listItemElement.classList.add("option");
listItemElement.setAttribute("hidden", "");
listItemElement.setAttribute("tabindex", -1)
listItemElement.setAttribute("tabindex", -1);
if (option.keywords) listItemElement.setAttribute("data-keywords", JSON.stringify(option.keywords));
listItemElement.addEventListener("click", (clickEvent) => {
clickEvent.stopPropagation();
Expand Down Expand Up @@ -395,21 +395,21 @@ export class Search extends LitElement {
...this.headerStyles,
})}>
<input placeholder="Type here to search" value=${valueToDisplay} @click=${(clickEvent) => {
clickEvent.stopPropagation();
clickEvent.stopPropagation();
if (this.listMode === "click") {
const input = clickEvent.target.value;
this.#populate(input);
}
}}
}}
@input=${(inputEvent) => {
const input = inputEvent.target.value;
this.#populate(input);
}}
@blur=${(blurEvent) => {
if (blurEvent.relatedTarget.classList.contains("option")) return;
this.submit()
if (blurEvent.relatedTarget.classList.contains("option")) return;
this.submit();
}}
></input>
Expand Down

0 comments on commit 083de71

Please sign in to comment.