Skip to content

Commit

Permalink
TermInput.js: Also accept new terms upon pushing Enter
Browse files Browse the repository at this point in the history
It's now controlled. Previously it depended on whether
Enter is able to submit the form or not. But a submit
isn't required either.
  • Loading branch information
nilmerg committed Aug 10, 2023
1 parent 8b8cfaf commit e9a69b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asset/js/widget/TermInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ define(["../notjQuery", "BaseInput"], function ($, BaseInput) {
return;
}

if (event.key !== this.separator) {
if (event.key !== this.separator && event.key !== 'Enter') {
return;
}

Expand Down

0 comments on commit e9a69b7

Please sign in to comment.