Skip to content

Commit 706a760

Browse files
authored
fix: attributes error penetration warning (#930)
1 parent 1aa3d2d commit 706a760

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/devtools/src/webcomponents/components/NuxtDevtoolsInspectPanel.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import type { NuxtDevToolsInspectorProps } from './Props'
33
import { onClickOutside, useDraggable } from '@vueuse/core'
44
import { computed, nextTick, ref, useTemplateRef, watch } from 'vue'
55
6+
defineOptions({
7+
inheritAttrs: false,
8+
})
69
const { props } = defineProps<{ props: NuxtDevToolsInspectorProps }>()
710
const emit = defineEmits<{
811
(e: 'close'): void
@@ -227,6 +230,7 @@ async function copyAgentInfo() {
227230
isDragging ? 'transition-none' : 'transition-opacity',
228231
props.matched ? 'op100' : 'op0 pointer-events-none',
229232
]"
233+
v-bind="$attrs"
230234
>
231235
<!-- <div
232236
class="pointer-events-none absolute inset-0 z-10 transition-opacity duration-300"

0 commit comments

Comments
 (0)