new autoComplete({
selector: '#site-search',
placeHolder: 'Rechercher un site',
diacritics: true,
data: {
src: () =>
newSites.map((site) => ({
label: site.label_site,
value: site.id_site,
})),
keys: ['label'],
},
Uncaught (in promise) TypeError: i.src(...).then is not a function
at autoComplete.min.js:1:3273
at new Promise (<anonymous>)
at autoComplete.min.js:1:3206
at new Promise (<anonymous>)
at d (autoComplete.min.js:1:3137)
at autoComplete.min.js:1:5851
at new Promise (<anonymous>)
at k (autoComplete.min.js:1:5620)
at e (autoComplete.min.js:1:6547)
at autoComplete.min.js:1:6625```
System Information
Describe the bug
Regression caused by
data.src.constructor.name === "AsyncFunction"fails in a transpiled environment #442, when I rollback to 10.2.9 it works like before. It might be interesting to dig again into it :/To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should work like before
Screenshots or GIF's (optional, but HIGHLY RECOMMENDED)
Every time I type in the input, this error is triggered: