mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-22 15:40:23 +00:00
Interpret empty value as null in integer field
This commit is contained in:
parent
9437791629
commit
5861007eff
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ public class IntFieldComp extends Comp<CompStructure<TextField>> {
|
|||
|
||||
text.textProperty().addListener((observableValue, oldValue, newValue) -> {
|
||||
if (newValue == null || "".equals(newValue) || (minValue < 0 && "-".equals(newValue))) {
|
||||
value.setValue(0);
|
||||
value.setValue(null);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue