Skip to content

Commit 9ea4912

Browse files
dgrahammuan
andcommitted
Group prerequisite returns
Co-authored-by: Mu-An Chiou <[email protected]>
1 parent 0e9fa9c commit 9ea4912

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,15 @@ class RemoteInputElement extends HTMLElement {
5353
async function fetchResults(remoteInput: RemoteInputElement, checkCurrentQuery: boolean = true) {
5454
const input = remoteInput.input
5555
if (!input) return
56+
5657
const query = input.value
5758
if (checkCurrentQuery && remoteInput.currentQuery === query) return
59+
5860
remoteInput.currentQuery = query
61+
5962
const src = remoteInput.src
6063
if (!src) return
64+
6165
const resultsContainer = document.getElementById(remoteInput.getAttribute('aria-owns') || '')
6266
if (!resultsContainer) return
6367

0 commit comments

Comments
 (0)