From ae2b729735dbb8487caaac3b2b253ba74a3a1254 Mon Sep 17 00:00:00 2001 From: sanjayk03-dev Date: Tue, 30 Jan 2024 22:18:30 +0530 Subject: [PATCH] fixed text area --- src/js/macros.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/js/macros.js b/src/js/macros.js index a402d2c..7c37044 100644 --- a/src/js/macros.js +++ b/src/js/macros.js @@ -66,8 +66,10 @@ module.exports = { utils.clickFileInput("gcode-file-input"); }, updateNewGcode: function (event) { - this.newGcode = event.target.value; - this.$dispatch("macros-edited"); + if (this.tab != 0) { + this.newGcode = event.target.value; + this.$dispatch("macros-edited"); + } }, editedColor: function (event) { if (this.tab != 0 && this.config.macros[this.tab - 1].color != event.target.value) {