Merge "StringListPanel: Do not ignore empty values when adding new row"
This commit is contained in:
commit
0309802819
@ -260,11 +260,8 @@ public class StringListPanel extends FlowPanel {
|
||||
void add() {
|
||||
List<String> values = new ArrayList<>();
|
||||
for (NpTextBox input : inputs) {
|
||||
String v = input.getValue().trim();
|
||||
if (!v.isEmpty()) {
|
||||
input.setValue("");
|
||||
values.add(v);
|
||||
}
|
||||
values.add(input.getValue().trim());
|
||||
input.setValue("");
|
||||
}
|
||||
insert(values);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user