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

Commit

Permalink
Merge pull request #12060 from petetnt/petetnt/BugFixesFor1.6Beta
Browse files Browse the repository at this point in the history
Fix Flipview focus issues
  • Loading branch information
swmitra committed Jan 8, 2016
2 parents 1cf30cd + 8bc2845 commit c92e4df
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/view/Pane.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,12 @@ define(function (require, exports, module) {
paneId: otherPaneId}).always(function () {
otherPane.trigger("viewListChange");
self.trigger("viewListChange");

// Defer the focusing until other focus events have occurred.
setTimeout(function () {
MainViewManager.setActivePaneId(otherPaneId);
self._lastFocusedElement = otherPane.$el[0];
}, 1);
});
});
});
Expand Down

0 comments on commit c92e4df

Please sign in to comment.