Browse Source

Avoid <a> links redirections on inlinedForm

Fixes #647 (IE 11)
Maxime Quandalle 9 years ago
parent
commit
3ed00f3db7
1 changed files with 3 additions and 1 deletions
  1. 3 1
      client/lib/inlinedform.js

+ 3 - 1
client/lib/inlinedform.js

@@ -28,7 +28,9 @@ InlinedForm = BlazeComponent.extendComponent({
     currentlyOpenedForm.set(null);
     currentlyOpenedForm.set(null);
   },
   },
 
 
-  open() {
+  open(evt) {
+    evt.preventDefault();
+
     // Close currently opened form, if any
     // Close currently opened form, if any
     EscapeActions.executeUpTo('inlinedForm');
     EscapeActions.executeUpTo('inlinedForm');
     this.isOpen.set(true);
     this.isOpen.set(true);