From 2aaf2be75394638e0e01717c0a775bebb13b47b0 Mon Sep 17 00:00:00 2001 From: "V@no" Date: Thu, 8 Jun 2023 19:44:48 -0400 Subject: [PATCH] Form reset uses innerHTML., not value attr. --- code-input.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code-input.js b/code-input.js index 5a9bde5..760d550 100644 --- a/code-input.js +++ b/code-input.js @@ -801,10 +801,10 @@ var codeInput = { pluginData = {}; /** - * Update value on form reset from value attribute + * Update value on form reset */ formResetCallback() { - this.update(this.querySelector("textarea").getAttribute("value")); + this.update(this.textareaElement.innerHTML); } } }