We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$refs[refName].$el
Vuetify Version: 3.1.6 Vue Version: 3.2.47 Browsers: Edge 110.0.1587.50 OS: Windows 10
Set ref="<name>" attribute on a VNavigationDrawer, then access this.$refs[<name>].$el
ref="<name>"
VNavigationDrawer
this.$refs[<name>].$el
The nav Element is returned
nav
Some kind of object called #text is returned
#text
https://play.vuetifyjs.com/#...
The text was updated successfully, but these errors were encountered:
Vuetify Version: 3.3.12
same
Sorry, something went wrong.
https://vuejs.org/api/component-instance.html#el
For components with multiple root nodes, $el will be the placeholder DOM node that Vue uses to keep track of the component's position in the DOM
Shame that there's not much info about this in the Vue docs. I've come up with a couple of workarounds:
id
document.getElementById()
this.$refs.<name>.$el.nextElementSibling
No branches or pull requests
Environment
Vuetify Version: 3.1.6
Vue Version: 3.2.47
Browsers: Edge 110.0.1587.50
OS: Windows 10
Steps to reproduce
Set
ref="<name>"
attribute on aVNavigationDrawer
, then accessthis.$refs[<name>].$el
Expected Behavior
The
nav
Element is returnedActual Behavior
Some kind of object called
#text
is returnedReproduction Link
https://play.vuetifyjs.com/#...
The text was updated successfully, but these errors were encountered: