move autocomplete controllers
This commit is contained in:
@@ -40,7 +40,7 @@ export default class extends HTMLElement {
|
||||
if (q) {
|
||||
const queryParams = new URLSearchParams({ q, field: this.dataset.field })
|
||||
|
||||
this.currentFetch ||= fetch('/api/submitters_autocomplete?' + queryParams)
|
||||
this.currentFetch ||= fetch('/submitters_autocomplete?' + queryParams)
|
||||
|
||||
this.currentFetch.then(async (resp) => {
|
||||
const items = await resp.json()
|
||||
|
||||
Reference in New Issue
Block a user