Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 3eb832a

Browse files
author
Weblate
committed
Merge remote-tracking branch 'origin/develop' into develop
2 parents d5093b7 + b8ca656 commit 3eb832a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/views/rooms/MessageComposerInput.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -983,8 +983,9 @@ export default class MessageComposerInput extends React.Component {
983983
// that we will silently discard nested blocks (e.g. nested lists) :(
984984
const fragment = this.html.deserialize(transfer.html);
985985
return change
986-
.setOperationFlag("skip", false)
987-
.setOperationFlag("merge", false)
986+
// XXX: this somehow makes Slate barf on undo and get too empty and break entirely
987+
// .setOperationFlag("skip", false)
988+
// .setOperationFlag("merge", false)
988989
.insertFragment(fragment.document);
989990
} else {
990991
// in MD mode we don't want the rich content pasted as the magic was annoying people so paste plain

0 commit comments

Comments
 (0)