Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data.src never fires #371

Open
PandaWood opened this issue Sep 16, 2022 · 1 comment
Open

data.src never fires #371

PandaWood opened this issue Sep 16, 2022 · 1 comment

Comments

@PandaWood
Copy link

I can't get the autocomplete to populate, I know it's something stupid I must be doing.
Following the demo code, I'm especially wondering why doesn't this code print 'getting data'
You can assume the id is correct, the js/css is loaded and the control looks exactly right, but what does the data.src need to fire?

console.log('starting autcomplete')

const activityList = new autoComplete({
	selector: '#activity-input',
	data: {
		src: async () => {
			console.log('getting data')  // this never runs, no code in here ever runs, what am I missing?
		}
	}
})
@folknor
Copy link

folknor commented Sep 17, 2022

I think we need to see more of your code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants