Skip to content

Commit 72b131a

Browse files
committed
Fixed for #434
1 parent c5928ff commit 72b131a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,13 @@ public MaterialSwitch(boolean value) {
9090
@Override
9191
protected void onLoad() {
9292
super.onLoad();
93-
if(offLabel.getText() != null && !offLabel.getText().isEmpty()) {
94-
label.add(offLabel);
95-
}
93+
label.add(offLabel);
9694
label.add(input);
9795
label.add(span);
9896
add(label);
9997
add(lblError);
10098
lblError.getElement().getStyle().setMarginTop(16, Unit.PX);
101-
102-
if(onLabel.getText() != null && !onLabel.getText().isEmpty()) {
103-
label.add(onLabel);
104-
}
99+
label.add(onLabel);
105100

106101
// register click handler here in order to have it at first position
107102
// and therefore it will deal with clicks as first and setup the value

0 commit comments

Comments
 (0)