We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e9fa9c commit 9ea4912Copy full SHA for 9ea4912
src/index.ts
@@ -53,11 +53,15 @@ class RemoteInputElement extends HTMLElement {
53
async function fetchResults(remoteInput: RemoteInputElement, checkCurrentQuery: boolean = true) {
54
const input = remoteInput.input
55
if (!input) return
56
+
57
const query = input.value
58
if (checkCurrentQuery && remoteInput.currentQuery === query) return
59
60
remoteInput.currentQuery = query
61
62
const src = remoteInput.src
63
if (!src) return
64
65
const resultsContainer = document.getElementById(remoteInput.getAttribute('aria-owns') || '')
66
if (!resultsContainer) return
67
0 commit comments