mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Use local state rather than stackLayout.currentItem
Bug: T311987 Change-Id: I62ddc013ae255bcbaf3478c7f0949238245988e6
This commit is contained in:
parent
3e2d594148
commit
a104d0c888
|
@ -153,7 +153,7 @@ ve.ui.MWTwoPaneTransclusionDialogLayout.prototype.onStackLayoutSet = function (
|
|||
* If the focus is already in an element on the current page, nothing will happen.
|
||||
*/
|
||||
ve.ui.MWTwoPaneTransclusionDialogLayout.prototype.focus = function () {
|
||||
var page = this.stackLayout.getCurrentItem();
|
||||
var page = this.pages[ this.currentPageName ];
|
||||
|
||||
if ( !page ) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue