autocomplete
autocomplete copied to clipboard
Switch input and resultsList refs to using IDs
When overriding the default slot, the list positioning no longer works because $refs.input and $refs.resultsList.
I'm not sure if there is a way to forward the refs to the default slot template, however accessing these elements by ID works as expected.
Interesting. My only hesitation with this approach is in server rendered apps, which wouldn't have access to the document
object. If there is a way to forward the ref to a slot, I would definitely prefer doing it that way. But I also don't know if that's possible or not. Have you been able to find any additional information regarding this?