Skip to content

Commit e3c75e1

Browse files
paodbjavier-godoy
authored andcommitted
feat: allow enter key press selection when no newItemHandler configured
Close #37
1 parent 40e2bba commit e3c75e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/resources/META-INF/frontend/paper-chip-input-autocomplete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ class PaperChipInputAutocomplete extends ThemableMixin(PolymerElement) {
329329
}
330330

331331
_onKeyEnter() {
332-
if (this.additionalItems && (this._inputValue != '' && this._inputValue != undefined)) {
332+
if (this.additionalItems || (this._inputValue != '' && this._inputValue != undefined)) {
333333
this._saveTag(this._inputValue);
334334
this.required = false;
335335
this.autoValidate = false;

0 commit comments

Comments
 (0)