File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/main/java/gwt/material/design/addins/client/combobox Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 5959import gwt .material .design .client .events .ClosingEvent ;
6060import gwt .material .design .client .events .OpeningEvent ;
6161import gwt .material .design .client .ui .MaterialLabel ;
62+ import gwt .material .design .client .ui .MaterialToast ;
6263import gwt .material .design .client .ui .html .Label ;
6364import gwt .material .design .client .ui .html .OptGroup ;
6465import gwt .material .design .client .ui .html .Option ;
@@ -234,7 +235,11 @@ public void load() {
234235 $ (getElement ()).find (".select2-selection__rendered" ).css ("color" , getTextColor ().getCssName ());
235236 }
236237
237- addFocusHandler (event -> open ());
238+ addFocusHandler (event -> {
239+ if (!isMultiple ()) {
240+ open ();
241+ }
242+ });
238243 getStatusTextMixin ().getStatusDisplayMixin ().setContainer (new MaterialWidget ($ (getElement ())));
239244 AddinsDarkThemeReloader .get ().reload (MaterialComboBoxDarkTheme .class );
240245 }
You can’t perform that action at this time.
0 commit comments