Skip to content
Snippets Groups Projects
Verified Commit 2f0c200f authored by Julian's avatar Julian Committed by Jonathan Weth
Browse files

Fix search reloading javascript event handler

(cherry picked from commit f9fdc329)
parent 85f2ce2c
No related branches found
No related tags found
1 merge request!691Prepare release 2.0rc3
......@@ -32,10 +32,11 @@ Autocomplete.prototype.setup = function () {
// Trigger the "keyup" event if input gets focused
this.query_box.focus(function () {
self.query_box.trigger("keydown");
self.query_box.trigger("input");
});
this.query_box.keyup(function () {
this.query_box.on("input", () => {
console.log("Input changed, fetching again...")
var query = self.query_box.val();
if (query.length < self.minimum_length) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment