Fix unsent toot confirmation dialog not popping up in single column (#13888)
This commit is contained in:
parent
b4a8400afd
commit
eeddb1a624
2 changed files with 30 additions and 9 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue