From 3ed00f3db742c747a6966c50793b15bddc88db32 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Wed, 20 Jul 2016 11:33:51 +0200 Subject: Avoid links redirections on inlinedForm Fixes #647 (IE 11) --- client/lib/inlinedform.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'client/lib/inlinedform.js') diff --git a/client/lib/inlinedform.js b/client/lib/inlinedform.js index 2732a2e3..bfca3983 100644 --- a/client/lib/inlinedform.js +++ b/client/lib/inlinedform.js @@ -28,7 +28,9 @@ InlinedForm = BlazeComponent.extendComponent({ currentlyOpenedForm.set(null); }, - open() { + open(evt) { + evt.preventDefault(); + // Close currently opened form, if any EscapeActions.executeUpTo('inlinedForm'); this.isOpen.set(true); -- cgit v1.2.3-1-g7c22