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

Switch input and resultsList refs to using IDs #99

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cosullivan
Copy link

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.

@trevoreyre
Copy link
Owner

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 trevoreyre added question Further information is requested vue Only applies to the autocomplete-vue package labels Aug 17, 2020
@trevoreyre trevoreyre added this to In progress in Current via automation Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested vue Only applies to the autocomplete-vue package
Projects
Current
  
In progress
Development

Successfully merging this pull request may close these issues.

None yet

2 participants