Skip to content

Commit

Permalink
Merge pull request #1345 from chalettu/menu-tooltip-issue
Browse files Browse the repository at this point in the history
BZ#1518056-Ensured tooltips do not show when drop downs are open
(cherry picked from commit 61db90e)

https://bugzilla.redhat.com/show_bug.cgi?id=1536684
  • Loading branch information
AllenBW authored and simaishi committed Mar 6, 2018
1 parent 431e11a commit 0dde1bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ function ComponentController() {

vm.$onInit = function() {
vm.menuRight = vm.menuRight && (vm.menuRight === 'true' || vm.menuRight === true);

angular.extend(vm, {
handleAction: handleAction,
isOpen: false
});
};

Expand Down
4 changes: 2 additions & 2 deletions client/app/shared/custom-dropdown/custom-dropdown.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<span class="primary-action pull-left" uib-dropdown>
<span class="primary-action pull-left" uib-dropdown is-open="vm.isOpen">
<button type="button" class="btn btn-default" uib-dropdown-toggle ng-disabled="vm.config.isDisabled"
uib-tooltip="{{vm.config.tooltipText}}"
tooltip-append-to-body="true"
tooltip-popup-delay="1000"
tooltip-placement="top"
tooltip-enable="vm.config.tooltipText"
tooltip-enable="!vm.isOpen && vm.config.tooltipText"
>
<i class="{{vm.config.icon}}"></i>
<span ng-if="vm.config.title">{{vm.config.title}}</span>
Expand Down

0 comments on commit 0dde1bb

Please sign in to comment.