Explorar el Código

Avoid <a> links redirections on inlinedForm

Fixes #647 (IE 11)
Maxime Quandalle hace 9 años
padre
commit
3ed00f3db7
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      client/lib/inlinedform.js

+ 3 - 1
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);