Skip to content

Commit a466233

Browse files
committed
Clear in-flight state after final request
1 parent 0235869 commit a466233

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,11 @@ async function fetchResults(remoteInput: RemoteInputElement, checkCurrentQuery:
108108
})
109109
html = await response.text()
110110
remoteInput.removeAttribute('loading')
111+
state.controller = null
111112
} catch (error) {
112113
if (error.name !== 'AbortError') {
113114
remoteInput.removeAttribute('loading')
115+
state.controller = null
114116
}
115117
return
116118
}

0 commit comments

Comments
 (0)