MDL-59527 autocomplete: Don't fetch ajax twice
[moodle.git] / lib / amd / src / form-autocomplete.js
index 43f37e1..b43080a 100644 (file)
@@ -818,8 +818,6 @@ define(['jquery', 'core/log', 'core/str', 'core/templates', 'core/notification']
                         };
                         // Trigger an ajax update after the text field value changes.
                         inputElement.on("input", throttledHandler);
-                        var arrowElement = $(document.getElementById(state.downArrowId));
-                        arrowElement.on("click", handler);
                     });
                 }
                 // Show the current values in the selection list.