From 71d1d9ad981750cac1e3f05d36c8efa8a1f1dded Mon Sep 17 00:00:00 2001 From: "Sam X. Chen" Date: Wed, 7 Aug 2019 23:44:45 -0400 Subject: Bug fix: bug#2589 #2575, Add Features: allowing user to insert/paste link, image, video --- client/components/activities/comments.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client/components/activities/comments.js') diff --git a/client/components/activities/comments.js b/client/components/activities/comments.js index 8289b628..95084646 100644 --- a/client/components/activities/comments.js +++ b/client/components/activities/comments.js @@ -38,6 +38,7 @@ BlazeComponent.extendComponent({ resetCommentInput(input); Tracker.flush(); autosize.update(input); + input.trigger('submitted'); } evt.preventDefault(); }, @@ -54,7 +55,7 @@ BlazeComponent.extendComponent({ // XXX This should be a static method of the `commentForm` component function resetCommentInput(input) { - input.val('').trigger('input'); // without manually trigger, input event won't be fired + input.val(''); // without manually trigger, input event won't be fired input.blur(); commentFormIsOpen.set(false); } -- cgit v1.2.3-1-g7c22