Skip to content

Commit

Permalink
[FIXED JENKINS-17050] Close pop-up menu when clicking outside.
Browse files Browse the repository at this point in the history
The _activationButtonPressed get's set to false onMouseUp, so can not be used to decide if the menu is active or not.
  • Loading branch information
Chris Arnott authored and kohsuke committed Apr 19, 2014
1 parent dd7d837 commit 0b49ff9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions war/src/main/webapp/scripts/yui/button/button-debug.js
Expand Up @@ -1525,7 +1525,7 @@ version: 2.9.0
}


if (this._activationButtonPressed || this._bOptionPressed) {
if (this.isActive() || this._bOptionPressed) {

Event.removeListener(document, "mouseup", this._onDocumentMouseUp);

Expand Down Expand Up @@ -1583,7 +1583,7 @@ version: 2.9.0
}


if (this._activationButtonPressed || this._bOptionPressed) {
if (this.isActive() || this._bOptionPressed) {

Event.on(document, "mouseup", this._onDocumentMouseUp, null, this);

Expand Down

0 comments on commit 0b49ff9

Please sign in to comment.