From 277f10792481d78881695df9af30f8a9e3ddb265 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 20 Jan 2020 13:03:09 +0000 Subject: [PATCH] Set flag before mutating on cut too --- src/components/views/rooms/BasicMessageComposer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/BasicMessageComposer.js b/src/components/views/rooms/BasicMessageComposer.js index e54396a9ed..94904242c3 100644 --- a/src/components/views/rooms/BasicMessageComposer.js +++ b/src/components/views/rooms/BasicMessageComposer.js @@ -210,8 +210,8 @@ export default class BasicMessageEditor extends React.Component { event.clipboardData.setData("application/x-riot-composer", JSON.stringify(selectedParts)); if (type === "cut") { // Remove the text, updating the model as appropriate - replaceRangeAndMoveCaret(range, []); this._modifiedFlag = true; + replaceRangeAndMoveCaret(range, []); } event.preventDefault(); }