Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit c92e4df

Browse files
committed
Merge pull request #12060 from petetnt/petetnt/BugFixesFor1.6Beta
Fix Flipview focus issues
2 parents 1cf30cd + 8bc2845 commit c92e4df

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/view/Pane.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,12 @@ define(function (require, exports, module) {
251251
paneId: otherPaneId}).always(function () {
252252
otherPane.trigger("viewListChange");
253253
self.trigger("viewListChange");
254+
255+
// Defer the focusing until other focus events have occurred.
256+
setTimeout(function () {
257+
MainViewManager.setActivePaneId(otherPaneId);
258+
self._lastFocusedElement = otherPane.$el[0];
259+
}, 1);
254260
});
255261
});
256262
});

0 commit comments

Comments
 (0)