diff --git a/wicket-select2/src/main/java/com/vaynberg/wicket/select2/Settings.java b/wicket-select2/src/main/java/com/vaynberg/wicket/select2/Settings.java index 179a2a6..53c9790 100755 --- a/wicket-select2/src/main/java/com/vaynberg/wicket/select2/Settings.java +++ b/wicket-select2/src/main/java/com/vaynberg/wicket/select2/Settings.java @@ -58,6 +58,7 @@ public static class Widths { private String tags; private String separator; private String[] tokenSeparators; + private Boolean selectOnBlur; private Boolean dropdownAutoWidth; public CharSequence toJson() { @@ -95,6 +96,7 @@ public CharSequence toJson() { Json.writeObject(writer, "dropdownCssClass", dropdownCssClass); Json.writeObject(writer, "separator", separator); Json.writeObject(writer, "tokenSeparators", tokenSeparators); + Json.writeObject(writer, "selectOnBlur", selectOnBlur); Json.writeObject(writer, "dropdownAutoWidth", dropdownAutoWidth); if (ajax != null) { writer.key("ajax"); @@ -389,6 +391,14 @@ public void setTokenSeparators(String[] tokenSeparators) { this.tokenSeparators = tokenSeparators; } + public Boolean getSelectOnBlur() { + return selectOnBlur; + } + + public void setSelectOnBlur(Boolean selectOnBlur) { + this.selectOnBlur = selectOnBlur; + } + public Boolean getDropdownAutoWidth() { return dropdownAutoWidth; }