Set flag before mutating on cut too
This commit is contained in:
parent
2ed5d89c9f
commit
277f107924
1 changed files with 1 additions and 1 deletions
|
@ -210,8 +210,8 @@ export default class BasicMessageEditor extends React.Component {
|
||||||
event.clipboardData.setData("application/x-riot-composer", JSON.stringify(selectedParts));
|
event.clipboardData.setData("application/x-riot-composer", JSON.stringify(selectedParts));
|
||||||
if (type === "cut") {
|
if (type === "cut") {
|
||||||
// Remove the text, updating the model as appropriate
|
// Remove the text, updating the model as appropriate
|
||||||
replaceRangeAndMoveCaret(range, []);
|
|
||||||
this._modifiedFlag = true;
|
this._modifiedFlag = true;
|
||||||
|
replaceRangeAndMoveCaret(range, []);
|
||||||
}
|
}
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue