From 486418978128b93c6ae7a9ebf34f4f05b7c3561e Mon Sep 17 00:00:00 2001 From: David Lynch Date: Tue, 14 Mar 2017 10:53:21 -0500 Subject: [PATCH] DesktopArticleTarget: Discard edit summary when canceling an edit Bug: T160130 Change-Id: I2a631b63c3f90bcd60a81312ee031f90dcbf6586 --- modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js index d110ba1c61..be17ff4798 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js +++ b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js @@ -652,6 +652,7 @@ ve.init.mw.DesktopArticleTarget.prototype.cancel = function ( trackMechanism ) { target.clearState(); target.initialEditSummary = new mw.Uri().query.summary; + target.editSummaryValue = null; target.deactivating = false; $( 'html' ).removeClass( 've-deactivating' );