From 3632f4c8ab9b7ba6a6c1f191e41ad26232471a3a Mon Sep 17 00:00:00 2001 From: "Sam X. Chen" Date: Mon, 22 Jul 2019 23:33:44 -0400 Subject: Add Feature: Comments can be richer (can support some safe HTML tags) --- client/components/activities/comments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/components/activities/comments.js') diff --git a/client/components/activities/comments.js b/client/components/activities/comments.js index 3fc5770c..8289b628 100644 --- a/client/components/activities/comments.js +++ b/client/components/activities/comments.js @@ -54,7 +54,7 @@ BlazeComponent.extendComponent({ // XXX This should be a static method of the `commentForm` component function resetCommentInput(input) { - input.val(''); + input.val('').trigger('input'); // without manually trigger, input event won't be fired input.blur(); commentFormIsOpen.set(false); } -- cgit v1.2.3-1-g7c22