mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
Hide inspectors using new method when saving
Previous hack caused unwanted blur events and subsequent range changes. Depends on I8388318311 in core. Change-Id: I9163f4d9928887a5eec09f0651ec0a66cc221cd4
This commit is contained in:
parent
3bba5e4d3b
commit
b019036a2c
|
@ -1142,8 +1142,8 @@ ve.init.mw.ViewPageTarget.prototype.setupSaveDialog = function () {
|
|||
* @fires saveWorkflowBegin
|
||||
*/
|
||||
ve.init.mw.ViewPageTarget.prototype.showSaveDialog = function () {
|
||||
// Focus the surface to make sure any open inspectors are closed
|
||||
this.surface.getView().focus();
|
||||
// Make sure any open inspectors are closed
|
||||
this.surface.getContext().closeCurrentInspector();
|
||||
|
||||
// Preload the serialization
|
||||
if ( !this.docToSave ) {
|
||||
|
|
Loading…
Reference in a new issue