From 6b7d9af0c2834524c66a0527cc8b49a038fca2e2 Mon Sep 17 00:00:00 2001 From: mrgoldy Date: Tue, 26 Nov 2019 16:36:56 +0100 Subject: [ticket/12539] Rebind live member search navigation PHPBB3-12539 --- phpBB/assets/javascript/core.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js index 4a61490615..5023d2906e 100644 --- a/phpBB/assets/javascript/core.js +++ b/phpBB/assets/javascript/core.js @@ -740,6 +740,8 @@ phpbb.search.closeResults = function($input, $container) { phpbb.search.navigateResults = function($input, $container, $resultContainer) { // Add a namespace to the event (.phpbb.search), // so it can be unbound specifically later on. + // Rebind it, to ensure the event is 'dynamic'. + $input.off('.phpbb.search'); $input.on('keydown.phpbb.search', function(event) { var key = event.keyCode || event.which, $active = $resultContainer.children('.active'); -- cgit v1.2.1