From aa73b04be1ac91222aa307ef3a422d7e0c62270d Mon Sep 17 00:00:00 2001 From: Ben Ritter Date: Wed, 11 Dec 2019 09:34:11 +0800 Subject: [PATCH] Fix edit buttons not triggering change events The discussion in #308 indicates that `this.change(this)` is incorrect, adding a listener instead of triggering a change event. --- js/bootstrap-markdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/bootstrap-markdown.js b/js/bootstrap-markdown.js index e3f1ca9..8a9bbbc 100644 --- a/js/bootstrap-markdown.js +++ b/js/bootstrap-markdown.js @@ -200,7 +200,7 @@ callbackHandler(this); // Trigger onChange for each button handle - this.change(this); + this.$textarea.change(); // Unless it was the save handler, // focusin the textarea