autocomplete
autocomplete copied to clipboard
Debounce when overriding default slot makes input unusable
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!
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!