Browse Source

Bug fix: was using textContent instead of value for textarea, so was not properly working.

Lee Morgan 1 year ago
parent
commit
67a02164b4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      views/js/pages/session.js

+ 1 - 1
views/js/pages/session.js

@@ -56,7 +56,7 @@ export default {
         container.style.display = "flex";
         container.style.display = "flex";
 
 
         const textarea = container.querySelector("textarea");
         const textarea = container.querySelector("textarea");
-        textarea.textContent = this.workout.exercises[this.exerciseIndex].notes;
+        textarea.value = this.workout.exercises[this.exerciseIndex].notes || "";
     },
     },
 
 
     closeNote: function(){
     closeNote: function(){