fix: disable inherting attrs on nodes/edges to avoid warnings

* disable context warnings for non-dev environments

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-11-16 16:01:44 +01:00
parent 63f710e422
commit a58d952e9f
12 changed files with 45 additions and 12 deletions
+5
View File
@@ -16,6 +16,11 @@ const props = withDefaults(defineProps<DefaultNodeProps>(), {
sourcePosition: Position.Bottom,
})
</script>
<script lang="ts">
export default {
inheritAttrs: false,
}
</script>
<template>
<Handle type="target" :position="props.targetPosition" :is-connectable="props.connectable" />
<component :is="props.data?.label" v-if="typeof props.data?.label !== 'string'" />