diff options
author | ThibG <thib@sitedethib.com> | 2020-05-31 20:38:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-31 20:38:56 +0200 |
commit | eeddb1a624c0e743e3e7b6d35104adfb10f2a747 (patch) | |
tree | 04a4da6335a324450e25ee2f7527525cdcb6a70c /app/javascript/mastodon/features/ui/index.js | |
parent | b4a8400afd88a2ae8822757e5d30975494be2512 (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.js | 1 |
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. |