Skip to content

Commit

Permalink
fix(v-tooltip): log error instead of throwing
Browse files Browse the repository at this point in the history
fixes #20564
  • Loading branch information
KaelWD committed Oct 11, 2024
1 parent 6e9f2a1 commit ae33530
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/vuetify/src/composables/directiveComponent.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Utilities
import { h, mergeProps, render, resolveComponent } from 'vue'
import { isObject } from '@/util'
import { consoleError, isObject } from '@/util'

// Types
import type {
Expand Down Expand Up @@ -118,7 +118,8 @@ function findComponentParent (vnode: VNode, root: ComponentInternalInstance): Co
return false
}
if (!walk([root.subTree])) {
throw new Error('Could not find original vnode')
consoleError('Could not find original vnode, component will not inherit provides')
return root
}

// Return the first component parent
Expand Down

0 comments on commit ae33530

Please sign in to comment.