autocomplete icon indicating copy to clipboard operation
autocomplete copied to clipboard

Switch input and resultsList refs to using IDs

Open cosullivan opened this issue 4 years ago • 1 comments

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.

cosullivan avatar Aug 06 '20 07:08 cosullivan

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?

trevoreyre avatar Aug 17 '20 19:08 trevoreyre