File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ export default {
8888 routeArray: this .routes [this .activeRoute ],
8989 activeComponentData: this .activeComponentData ,
9090 })
91+ this .attributeText = " " ;
9192 },
9293
9394 changeAttribute (attribute ) {
Original file line number Diff line number Diff line change @@ -116,21 +116,33 @@ export default {
116116 ' dragDropSortSelectedHtmlElements' ,
117117 ' openAttributeModal' ,
118118 ' addActiveComponentClass' ,
119- ' addBindingText'
119+ ' addBindingText' ,
120+ ' clearActiveHTML' ,
120121 ]),
121122 deleteElement (id ) {
122123 if (this .activeComponent === ' ' ) this .$store .dispatch (deleteSelectedElement, id[0 ])
123124 else this .$store .dispatch (deleteFromComponentHtmlList, id[1 ])
124125
125126 },
127+
128+ closeMenu (element ) {
129+ if (this .activeComponent !== ' ' ) {
130+ this .clearActiveHTML ()
131+ this .openAttributeModal (element);
132+ }
133+ },
134+
126135 setActiveElement (element ) {
127136 if (this .activeComponent !== ' ' ) {
128137 this .setActiveHTML (element);
129138 if (this .attributeModal === false ) {
130139 this .openAttributeModal (element);
140+ } else {
141+ this .closeMenu (element);
131142 }
132143 }
133144 },
145+
134146 setLayer (element ) {
135147 this .setActiveLayer (element)
136148 element .id = this .activeHTML
You can’t perform that action at this time.
0 commit comments