Skip to content

Commit

Permalink
fix(v-tooltip): use textContent instead of innerHTML
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD committed Sep 3, 2024
1 parent bc647f6 commit ca49443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vuetify/src/composables/directiveComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function mountComponent (component: ConcreteComponent, props?: Record<string, an
const value = isObject(binding.value) ? binding.value : {}

// Get the children from the props or directive value, or the element's children
const children = () => text ?? el.innerHTML
const children = () => text ?? el.textContent

// If vnode.ctx is the same as the instance, then we're bound to a plain element
// and need to find the nearest parent component instance to inherit provides from
Expand Down

0 comments on commit ca49443

Please sign in to comment.