We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35855ba commit c7c4c0eCopy full SHA for c7c4c0e
packages/devtools-kit/src/core/component-inspector/index.ts
@@ -150,8 +150,8 @@ function inspectFn(e: MouseEvent) {
150
if (instance) {
151
inspectInstance = instance
152
const el = instance.vnode.el as HTMLElement | undefined
153
- if (el && el.nodeType === Node.ELEMENT_NODE) {
154
- const bounds = el.getBoundingClientRect()
+ if (el) {
+ const bounds = getComponentBoundingRect(instance)
155
const name = getInstanceName(instance)
156
const container = getCotainerElement()
157
container ? update({ bounds, name }) : create({ bounds, name })
0 commit comments