about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/ui/index.js
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-05-31 20:38:56 +0200
committerGitHub <noreply@github.com>2020-05-31 20:38:56 +0200
commiteeddb1a624c0e743e3e7b6d35104adfb10f2a747 (patch)
tree04a4da6335a324450e25ee2f7527525cdcb6a70c /app/javascript/mastodon/features/ui/index.js
parentb4a8400afd88a2ae8822757e5d30975494be2512 (diff)
Fix unsent toot confirmation dialog not popping up in single column (#13888)
Diffstat (limited to 'app/javascript/mastodon/features/ui/index.js')
-rw-r--r--app/javascript/mastodon/features/ui/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/mastodon/features/ui/index.js b/app/javascript/mastodon/features/ui/index.js
index 81ffad22e..d21ecf208 100644
--- a/app/javascript/mastodon/features/ui/index.js
+++ b/app/javascript/mastodon/features/ui/index.js
@@ -254,6 +254,7 @@ class UI extends React.PureComponent {
     dispatch(synchronouslySubmitMarkers());
 
     if (isComposing && (hasComposingText || hasMediaAttachments)) {
+      e.preventDefault();
       // Setting returnValue to any string causes confirmation dialog.
       // Many browsers no longer display this text to users,
       // but we set user-friendly message for other browsers, e.g. Edge.