Skip to content

Commit

Permalink
#550 Fixed event type
Browse files Browse the repository at this point in the history
  • Loading branch information
Possommi committed Sep 5, 2024
1 parent 37c8662 commit e1418a2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const HisinOneProjects = {
let item = {};
item.id = project.id;
item.label = project.shorttext + ": " + project.defaulttext + " [" + project.id + "]";
item.defaultText = project.shorttext;
item.defaultText = project.defaulttext;
item.shortText = project.shorttext;
projects.push(item);
})
Expand All @@ -24,7 +24,7 @@ const HisinOneProjects = {
return false;
},

onKeyUp: async function (event) {
onInput: async function (event) {
let input = $("#project-search-his-in-one");
input.autocomplete({
delay: 0,
Expand All @@ -36,5 +36,5 @@ const HisinOneProjects = {
};

document.addEventListener('DOMContentLoaded', function () {
document.getElementById('project-search-his-in-one').addEventListener('change', HisinOneProjects.onKeyUp);
document.getElementById('project-search-his-in-one').addEventListener('input', HisinOneProjects.onInput);
});

0 comments on commit e1418a2

Please sign in to comment.