From a5409a8ca1cec5c46e642976b1b6da3c937d29e9 Mon Sep 17 00:00:00 2001 From: roykho Date: Thu, 4 Feb 2021 10:24:31 -0800 Subject: [PATCH] Update deprecated jQuery functions for country-select.js --- assets/js/frontend/country-select.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/frontend/country-select.js b/assets/js/frontend/country-select.js index 00e9d902682..46a0467ff01 100644 --- a/assets/js/frontend/country-select.js +++ b/assets/js/frontend/country-select.js @@ -65,7 +65,7 @@ jQuery( function( $ ) { $( this ) .on( 'select2:select', function() { - $( this ).focus(); // Maintain focus after select https://github.com/select2/select2/issues/4384 + $( this ).trigger( 'focus' ); // Maintain focus after select https://github.com/select2/select2/issues/4384 } ) .selectWoo( select2_args ); });