File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ Description:
21
21
@dblclick.self =" setActiveElement(element)"
22
22
v-for =" (element) in renderList" :key =" element[1] + Date.now()"
23
23
>
24
- <i v-if =' activeComponent === "" ' class =" fas fa fa-angle-double-down fa-md" id =" unavailable" ></i >
24
+ <i v-if =' activeComponent === "" || exceptions.includes(element[0]) ' class =" fas fa fa-angle-double-down fa-md" id =" unavailable" ></i >
25
25
<i v-else class =" fas fa fa-angle-double-down fa-md" @click =" setLayer({text: element[0], id: element[2]})" ></i >
26
26
{{ element[0] }}
27
27
<i class =" fas fa fa-trash fa-md" @click.self =" deleteElement([element[1],element[2]])" ></i >
@@ -64,7 +64,8 @@ export default {
64
64
},
65
65
data () {
66
66
return {
67
- depth: ' '
67
+ depth: ' ' ,
68
+ exceptions: [' input' , ' img' , ' link' ]
68
69
}
69
70
},
70
71
computed: {
@@ -97,7 +98,7 @@ export default {
97
98
else this .$store .dispatch (deleteFromComponentHtmlList, id[1 ])
98
99
},
99
100
setActiveElement (element ) {
100
- if (this .activeComponent !== ' ' ) {
101
+ if (this .activeComponent !== ' ' && ! this . exceptions . includes (element[ 0 ]) ) {
101
102
this .setActiveHTML (element)
102
103
}
103
104
},
You can’t perform that action at this time.
0 commit comments