Skip to content

Commit

Permalink
added changes from fixBug branch that weren't carried over during mer…
Browse files Browse the repository at this point in the history
…ging
  • Loading branch information
martinfrancois committed Dec 4, 2017
1 parent e724749 commit 6313f39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,7 @@ public class MultiSelectionField<V> extends SelectionField<V, MultiSelectionFiel
// Changes to the user input are reflected in the value only if the new
// user input is valid.

this.persistentSelection.addListener((observable, oldValue, newValue) -> {
if (validate()) {
this.selection.setValue(newValue);
}
});
this.selection.addListener((observable, oldValue, newValue) -> validate());

// Clear the current selection and persistent selection whenever new
// items are added. The selection is built back up if it is passed along
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,7 @@ public class SingleSelectionField<V> extends SelectionField<V, SingleSelectionFi
// Changes to the user input are reflected in the value only if the new
// user input is valid.

this.persistentSelection.addListener((observable, oldValue, newValue) -> {
if (validate()) {
this.selection.setValue(newValue);
}
});
this.selection.addListener((observable, oldValue, newValue) -> validate());

// Clear the current selection and persistent selection whenever new
// items are added. The selection is built back up if it is passed along
Expand Down

0 comments on commit 6313f39

Please sign in to comment.