Explorar el Código

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

Lee Morgan hace 1 año
padre
commit
67a02164b4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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";
 
         const textarea = container.querySelector("textarea");
-        textarea.textContent = this.workout.exercises[this.exerciseIndex].notes;
+        textarea.value = this.workout.exercises[this.exerciseIndex].notes || "";
     },
 
     closeNote: function(){