Skip to content

Commit 72717f4

Browse files
committed
refactor: use .on() for keyup event in search input handler
Update the search input's binding to use instead of the deprecated shorthand , aligning with our consistent event binding pattern. This change keeps the codebase uniform with recent refactors (e.g., click, focus, keydown) and prepares for safe compatibility with jQuery 3.x now that we've upgraded. No behavioral changes event logic and timing remain identical. Part of ongoing effort to eliminate legacy jQuery patterns ahead of removing jQuery Migrate.
1 parent ed238e3 commit 72717f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/application.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ var Search = {
190190
},
191191

192192
observeTextEntry: function() {
193-
$('form#search input').keyup(function(e) {
193+
$('form#search input').on('keyup', function() {
194194
Search.runSearch();
195195
});
196196

0 commit comments

Comments
 (0)