Repository navigation
Mount Quasar Component Error in mounted hook: "TypeError: Cannot read property 'classList' of null" #9396
Answered
by
rstoenescu
tanshuai
asked this question in
General - Components / Directives / etc
|
Append Quasar Component as child node to an element caused errors by the following code: import QTooltip from 'quasar'
export default {
name: 'Main',
methods: {
eventOn (node) {
const qtt = new QTooltip().$mount()
node.appendChild(qtt.$el)
}
}
}the following reference code works well: const MyComponent = Vue.extend({
template: '<div>Some text as content of Tooltip</div>'
})
const component = new MyComponent().$mount()
node.appendChild(component.$el) |
Answered by
rstoenescu
Jun 18, 2022
Replies: 3 comments
|
@tanshuai |
0 replies
|
@tanshuai any luck working around this issue? |
0 replies
|
Fix for this use-case will be available in Quasar v1.19.2 |
0 replies
Answer selected by
rstoenescu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fix for this use-case will be available in Quasar v1.19.2