Procházet zdrojové kódy

Avoid <a> links redirections on inlinedForm

Fixes #647 (IE 11)
Maxime Quandalle před 9 roky
rodič
revize
3ed00f3db7
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  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);