Skip to content

Commit

Permalink
fixed rendering of root item in embedded component
Browse files Browse the repository at this point in the history
  • Loading branch information
ishubin committed Dec 23, 2023
1 parent db5f42b commit c2866f8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/ui/components/editor/items/shapes/Component.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<advanced-fill :fillId="`fill-pattern-button-${item.id}`" :fill="item.shapeProps.buttonFill" :area="item.area"/>
<advanced-fill :fillId="`fill-pattern-button-hovered-${item.id}`" :fill="item.shapeProps.buttonHoverFill" :area="item.area"/>

<path :d="shapePath"
<path v-if="item.shapeProps.kind !== 'embedded'" :d="shapePath"
:stroke-width="item.shapeProps.strokeSize + 'px'"
:stroke="item.shapeProps.strokeColor"
:stroke-dasharray="strokeDashArray"
Expand Down
4 changes: 0 additions & 4 deletions src/ui/scheme/SchemeContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,11 +455,7 @@ class SchemeContainer {
...referenceItem.meta,
componentRoot: true
},
shape: 'none',
opacity: 100,
selfOpacity: 100,
visible: true,
shapeProps: {}
};

this.attachItemsToComponentItem(item, [rootItem]);
Expand Down

0 comments on commit c2866f8

Please sign in to comment.