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 >
@@ -49,7 +49,8 @@ export default {
49
49
},
50
50
data () {
51
51
return {
52
- depth: ' '
52
+ depth: ' ' ,
53
+ exceptions: [' input' , ' img' , ' link' ]
53
54
}
54
55
},
55
56
computed: {
@@ -82,7 +83,7 @@ export default {
82
83
else this .$store .dispatch (deleteFromComponentHtmlList, id[1 ])
83
84
},
84
85
setActiveElement (element ) {
85
- if (this .activeComponent !== ' ' ) {
86
+ if (this .activeComponent !== ' ' && ! this . exceptions . includes (element[ 0 ]) ) {
86
87
this .setActiveHTML (element)
87
88
}
88
89
},
You can’t perform that action at this time.
0 commit comments