Skip to content

Commit 41858f7

Browse files
authored
Merge pull request #196 from GwtMaterialDesign/revert-190-master
Revert "Fixes #189, clear should not remove label, error label and listbox"
2 parents 543929f + ff05887 commit 41858f7

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/main/java/gwt/material/design/addins/client/combobox/MaterialComboBox.java

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646

4747
import java.util.ArrayList;
4848
import java.util.Collection;
49-
import java.util.Iterator;
5049
import java.util.List;
5150

5251
import static gwt.material.design.addins.client.combobox.js.JsComboBox.$;
@@ -212,17 +211,6 @@ public void add(Widget child) {
212211
listbox.add(child);
213212
}
214213

215-
@Override
216-
public void clear() {
217-
final Iterator<Widget> it = iterator();
218-
while (it.hasNext()) {
219-
final Widget widget = it.next();
220-
if (widget != label && widget != lblError && widget != listbox) {
221-
it.remove();
222-
}
223-
}
224-
}
225-
226214
/**
227215
* Sets multi-value select boxes.
228216
*/
@@ -594,4 +582,4 @@ public MaterialWidget getListbox() {
594582
public Label getLabel() {
595583
return label;
596584
}
597-
}
585+
}

0 commit comments

Comments
 (0)