File tree Expand file tree Collapse file tree 2 files changed +15
-14
lines changed Expand file tree Collapse file tree 2 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -289,20 +289,20 @@ export default {
289
289
},
290
290
mounted () {
291
291
// when component is mounted, add ability to delete
292
- window .addEventListener (" keyup" , (event ) => {
293
- if (event .key === " Backspace" ) {
294
- if (this .activeComponent !== ' ' && this .noteModalOpen === false ) {
295
- this .$store .dispatch (" deleteActiveComponent" );
296
- }
297
- }
298
- });
299
- window .addEventListener (" keyup" , (event ) => {
300
- if (event .key === " Delete" ) {
301
- if (this .activeComponent !== ' ' && this .noteModalOpen === false ) {
302
- this .$store .dispatch (" deleteActiveComponent" );
303
- }
304
- }
305
- });
292
+ // window.addEventListener("keyup", (event) => {
293
+ // if (event.key === "Backspace") {
294
+ // if (this.activeComponent !== '' && this.noteModalOpen === false) {
295
+ // this.$store.dispatch("deleteActiveComponent");
296
+ // }
297
+ // }
298
+ // });
299
+ // window.addEventListener("keyup", (event) => {
300
+ // if (event.key === "Delete") {
301
+ // if (this.activeComponent !== '' && this.noteModalOpen === false) {
302
+ // this.$store.dispatch("deleteActiveComponent");
303
+ // }
304
+ // }
305
+ // });
306
306
// listener for the copy
307
307
window .addEventListener (" copy" , () => {
308
308
// if there is an activeComponent, copy info to state using dispatch
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ export default {
96
96
routeArray: this .routes [this .activeRoute ],
97
97
activeComponentData: this .activeComponentData ,
98
98
})
99
+ this .attributeText = " " ;
99
100
},
100
101
101
102
changeAttribute (attribute ) {
You can’t perform that action at this time.
0 commit comments