update components

This commit is contained in:
Luke Pulverenti 2016-04-10 17:45:06 -04:00
parent 20a9c83bf6
commit 308b423658
5 changed files with 21 additions and 15 deletions

View file

@ -51,8 +51,12 @@ define(['viewcontainer', 'focusManager', 'queryString', 'connectionManager', 'ev
focusManager.autoFocus(view);
}
}
else if (view.activeElement) {
view.activeElement.focus();
else {
if (view.activeElement && document.body.contains(view.activeElement) && focusManager.isCurrentlyFocusable(view.activeElement)) {
focusManager.focus(view.activeElement);
} else {
focusManager.autoFocus(view);
}
}
view.dispatchEvent(new CustomEvent('viewshow', eventDetail));