Author: Nikita Popov (nikic) Date: 2021-10-21T11:56:12+02:00 Commit: https://github.com/php/web-bugs/commit/1062abe4989226065188931b4c2402a7d8b3ed06 Raw diff: https://github.com/php/web-bugs/commit/1062abe4989226065188931b4c2402a7d8b3ed06.diff
Fix JS error when resizing package group select If nothing is selected, we should skip all the updating code. Changed paths: M www/js/package-affected.js Diff: diff --git a/www/js/package-affected.js b/www/js/package-affected.js index 4f2e58fb..227f8b09 100644 --- a/www/js/package-affected.js +++ b/www/js/package-affected.js @@ -48,6 +48,10 @@ window.addEventListener( ); function updateGroup() { + if (!packageGroup.value) { + return; + } + select.disabled = false; if (instructions instanceof HTMLElement) { -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php