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

Debounce when overriding default slot makes input unusable #98

Open
coniesco opened this issue Aug 4, 2020 · 1 comment
Open

Debounce when overriding default slot makes input unusable #98

coniesco opened this issue Aug 4, 2020 · 1 comment
Labels
bug Something isn't working vue Only applies to the autocomplete-vue package
Projects

Comments

@coniesco
Copy link

coniesco commented Aug 4, 2020

Hi!

I'm trying to override the default slot like in the example here, but when I try to define the debounce time in the autocomplete component

<autocomplete
      ref="autocomplete"
      :search="search"
      placeholder="Search for a country"
      aria-label="Search for a country"
      :debounce-time="500"
    >

the input resets itself to an empty string after typing each letter, so you can never get the whole string.

Do you have any advice on where to define the debounce time?

Thanks!

@trevoreyre
Copy link
Owner

You should be able to define debounce on the root autocomplete component like you did here. I'll have to look into why this is happening. There seem to be another issue or two with the debounce implementation. If you have any additional details you could share for this issue, or better yet, a minimal reproduction, that would be amazing!

@trevoreyre trevoreyre added the vue Only applies to the autocomplete-vue package label Aug 17, 2020
@trevoreyre trevoreyre added the bug Something isn't working label Sep 1, 2020
@trevoreyre trevoreyre added this to To do in Current via automation Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working vue Only applies to the autocomplete-vue package
Projects
Current
  
To do
Development

No branches or pull requests

2 participants