Skip to content

Commit

Permalink
fix #976 setCloseOnBlur Causes Unintended Behavior (Menu Closing) in …
Browse files Browse the repository at this point in the history
…MultiSelect Component
  • Loading branch information
vegegoku committed Nov 17, 2024
1 parent 6420519 commit f601b7e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,10 @@ private void initCheckBox() {
});

menuItem.addSelectionHandler(
menuItemValue -> {
checkbox.withValue(menuItem.isSelected(), true);
});
menuItemValue -> checkbox.withValue(menuItem.isSelected(), true));

menuItem.addDeselectionHandler(
() -> checkbox.withValue(menuItem.isSelected(), true));
});
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public static <V> MultiSelect<V> create(String label) {
/** Default constructor initializing the options menu for multi-selection. */
public MultiSelect() {
optionsMenu.setMultiSelect(true);
setAutoCloseOnSelect(false);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
.dui-menu-item {
cursor: pointer;
text-align: left;
padding: var(--dui-menu-item-padding);
font-style: normal;
position: relative;
}
Expand Down Expand Up @@ -128,6 +127,7 @@
text-decoration: none;
flex-wrap: nowrap;
flex-basis: 24px;
padding: var(--dui-menu-item-padding);
}

.dui-menu-item-icon {
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<elemental2.version>1.2.3</elemental2.version>
<gwt.version>2.12.0</gwt.version>
<gwt.version>2.12.1</gwt.version>
<jackson.apt.version>1.0.5</jackson.apt.version>
<gwt.i18n.version>1.0.2</gwt.i18n.version>
<domino.doc.tool.version>1.0.0</domino.doc.tool.version>
Expand Down

0 comments on commit f601b7e

Please sign in to comment.