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

Show all results on click #315

Open
darkwood-studios opened this issue Feb 1, 2022 · 3 comments
Open

Show all results on click #315

darkwood-studios opened this issue Feb 1, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@darkwood-studios
Copy link

Hi there,

I'm trying to show the full list of results on click/focus on the input - even if the input.value is empty. Any ideas how to solve this?

I already tried this:

this.myInput.addEventListener("click", (event) => {
myInputAutoComplete.open()
});

But the opened list is empty, although the myInputAutoComplete.data.src has items. I've tried to start an empty search, too - but nothing happens.

Best,
Daniel

@darkwood-studios darkwood-studios added the enhancement New feature or request label Feb 1, 2022
@darkwood-studios darkwood-studios changed the title Show all result on click Show all results on click Feb 1, 2022
@folknor
Copy link

folknor commented Feb 1, 2022

#277

@LucasRoquilly
Copy link

Hello, I gave a solution here : #332 (comment)

Working codepen : https://codepen.io/lucasroquilly/pen/LYQdpXB

@IvAndrew
Copy link
Contributor

I have similar task and I am created PR #378 with solution in docs "how to guides".

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

No branches or pull requests

4 participants