Skip to content

Commit

Permalink
Fix #3800 Dropdown menu of the ABOUT in navigation bar (#3855)
Browse files Browse the repository at this point in the history
* Issue #3800 dropdown click about focus error

* Indentation Error
  • Loading branch information
Wind Chaser authored and tjiang11 committed Sep 14, 2017
1 parent 62325ab commit 5f7598f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ oppia.directive('topNavigationBar', [
angular.element(evt.currentTarget).parent().removeClass('open');
$scope.profileDropdownIsActive = false;
};

$scope.onMouseoutDropdownMenuAbout = function(evt) {
angular.element(evt.currentTarget)[0].blur();
}
$scope.onMouseoverDropdownMenu = function(evt) {
angular.element(evt.currentTarget).parent().addClass('open');
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
role="menuitem"
aria-haspopup="true"
aria-expanded="false"
tabindex="0">
tabindex="0"
ng-mouseleave="onMouseoutDropdownMenuAbout($event)">
<span class="oppia-navbar-tab-content" translate="I18N_TOPNAV_ABOUT"></span>
<span class="caret"></span>
</a>
Expand Down

0 comments on commit 5f7598f

Please sign in to comment.