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:
@@ -14,6 +14,11 @@ const props = withDefaults(defineProps<InputNodeProps>(), {
|
||||
sourcePosition: Position.Bottom,
|
||||
})
|
||||
</script>
|
||||
<script lang="ts">
|
||||
export default {
|
||||
inheritAttrs: false,
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
<component :is="props.data?.label" v-if="typeof props.data?.label !== 'string'" />
|
||||
<span v-else v-html="props.data?.label"></span>
|
||||
|
||||
Reference in New Issue
Block a user