From 4087a1cec0908adb830069b642ba3c0587f3ca2a Mon Sep 17 00:00:00 2001 From: Thalia Date: Mon, 7 Dec 2015 18:41:10 +0000 Subject: [PATCH] Focus the math dialog input after the symbols promise has returned Bug: T119778 Change-Id: Ia5afe667241543addbda95d4d284b8af63f693a1 --- modules/ve-math/ve.ui.MWMathDialog.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/ve-math/ve.ui.MWMathDialog.js b/modules/ve-math/ve.ui.MWMathDialog.js index 7c42fea..b46d1cc 100644 --- a/modules/ve-math/ve.ui.MWMathDialog.js +++ b/modules/ve-math/ve.ui.MWMathDialog.js @@ -225,8 +225,10 @@ ve.ui.MWMathDialog.prototype.getSetupProcess = function ( data ) { ve.ui.MWMathDialog.prototype.getReadyProcess = function ( data ) { return ve.ui.MWMathDialog.super.prototype.getReadyProcess.call( this, data ) .next( function () { - this.input.focus().moveCursorToEnd(); return this.symbolsPromise; + }, this ) + .next( function () { + this.input.focus().moveCursorToEnd(); }, this ); };