Sfoglia il codice sorgente

Avoid <a> links redirections on inlinedForm

Fixes #647 (IE 11)
Maxime Quandalle 9 anni fa
parent
commit
3ed00f3db7
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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);