Skip to content

Commit 8634461

Browse files
committed
Fixed issue on setError / Success Label on MaterialValueBox widget
1 parent bf3308e commit 8634461

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,7 @@ public void setError(String error) {
560560

561561
removeErrorModifiers();
562562
label.setStyleName("red-text");
563+
label.addStyleName(CssName.ACTIVE);
563564
valueBoxBase.getElement().addClassName(CssName.INVALID);
564565
}
565566

@@ -569,6 +570,7 @@ public void setSuccess(String success) {
569570

570571
removeErrorModifiers();
571572
label.setStyleName("green-text");
573+
label.addStyleName(CssName.ACTIVE);
572574
valueBoxBase.getElement().addClassName(CssName.VALID);
573575
}
574576

0 commit comments

Comments
 (0)