summaryrefslogtreecommitdiffstats
path: root/client/lib/inlinedform.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/lib/inlinedform.js')
-rw-r--r--client/lib/inlinedform.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/lib/inlinedform.js b/client/lib/inlinedform.js
index 2732a2e3..56768a13 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 && evt.preventDefault();
+
// Close currently opened form, if any
EscapeActions.executeUpTo('inlinedForm');
this.isOpen.set(true);