autocomplete
autocomplete copied to clipboard
Autocomplete dropdown placement issue when debounce not 0
I noticed a strange behavior, when I set the debounce time, the placement of the results autocomplete always renders below instead of the normal behavior of responsive based on where the input is in the viewport.
Without debounce, works as expected:
Same search query but with debounce set to 300, it misbehaves
Oh, interesting. I'm not sure why that would be happening. I wonder if the function to reposition the results list is somehow firing before the debounced result returns? I'll have to investigate a little deeper.