Skip to content

Commit 33745d7

Browse files
committed
Fixed MaterialPopupMenu
1 parent 724fff0 commit 33745d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/gwt/material/design/addins/client/popupmenu/MaterialPopupMenu.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ protected void onLoad() {
7474
public void load() {
7575
$(this).attr("tabindex", "0");
7676

77-
$(window()).off().on("mouseup", e -> {
77+
$(this).off("mouseup").on("mouseup", e -> {
7878
boolean closest = $(e.target).closest("#" + id).length() == 0;
7979
if (autoClose && closest) {
8080
close();

0 commit comments

Comments
 (0)