From 10bc5e59fc35b91710c9559ed88f577a86c3e582 Mon Sep 17 00:00:00 2001 From: Isaiah Coleman Date: Thu, 16 Jan 2025 13:50:51 -0500 Subject: [PATCH] Update event binding --- pn-site/js/guidesearch.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pn-site/js/guidesearch.js b/pn-site/js/guidesearch.js index 63309b7e..93ee44d4 100644 --- a/pn-site/js/guidesearch.js +++ b/pn-site/js/guidesearch.js @@ -364,13 +364,13 @@ $(document).ready( if(betaOn){ - $(this).keypress(function(event){ return convertCharToggle(this, true, event); }); - $(this).keyup(function(event){ return convertStr( this, event ); }); + $(this).on('keypress', function(event){ return convertCharToggle(this, true, event); }); + $(this).on('keyup', function(event){ return convertStr( this, event ); }); } else{ - $(this).keyup(function(event){ + $(this).on('keyup', function(event){ event.stopPropagation(); var val = $(this).val(); if(!colonFound && val.match(":")) {