Skip to content

Commit b14b778

Browse files
committed
finishing changes
1 parent 81830ad commit b14b778

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/components/ComponentDisplay.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default {
101101
102102
window.addEventListener("keyup", event => {
103103
if (event.key === "Backspace") {
104-
if (this.activeComponent && this.activeComponentData.isActive) {
104+
if (this.activeComponent /*&& this.activeComponentData.isActive*/) {
105105
// console.log('this:', this)
106106
this.$store.dispatch("deleteActiveComponent");
107107
}
@@ -406,7 +406,7 @@ export default {
406406
z-index: -1;
407407
}
408408
.component-children {
409-
position: absolute;
409+
position: relative;
410410
top: 0rem;
411411
left: 2px;
412412
color: black;

src/components/CreateComponent.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,9 @@ export default {
8484
8585
},
8686
resetActiveComponent () {
87-
if(!this.activeComponent === ''){
88-
this.setActiveComponent('')
89-
}
90-
87+
if (this.activeComponent !== '') {
88+
this.setActiveComponent('')
89+
}
9190
},
9291
handleIconClick () {
9392
if (this.activeComponent === '') this.setClickedElementList()

0 commit comments

Comments
 (0)