Use local state rather than stackLayout.currentItem

Bug: T311987
Change-Id: I62ddc013ae255bcbaf3478c7f0949238245988e6
This commit is contained in:
Adam Wight 2022-07-04 10:40:35 +02:00
parent 3e2d594148
commit a104d0c888

View file

@ -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;