Skip to content

Commit 62dcfa3

Browse files
committed
Fixed Opening a ListValueBox does not close the another ListValueBox that is open #726
1 parent 373149e commit 62dcfa3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

gwt-material/src/main/java/gwt/material/design/client/ui/MaterialListValueBox.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,12 @@ public void load() {
120120
return true;
121121
});
122122

123-
$(listBox.getElement()).siblings("input.select-dropdown").on("mousedown", (e, param1) -> {
123+
// Fixed IE browser for select dropdown scrolling
124+
// Related materialize issue https://github.com/Dogfalo/materialize/issues/901
125+
$(listBox.getElement()).siblings("input.select-dropdown").mousedown((event, o) -> {
126+
$(".select-dropdown").trigger("close", true);
124127
if (!UiHelper.isTouchScreenDevice()) {
125-
e.preventDefault();
128+
event.preventDefault();
126129
}
127130
return true;
128131
});

0 commit comments

Comments
 (0)