[web-bugs] master: Fix JS error when resizing package group select

From: Date: Thu, 21 Oct 2021 09:56:08 +0000
Subject: [web-bugs] master: Fix JS error when resizing package group select
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-29665@lists.php.net to get a copy of this message
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) {

« previous php.webmaster (#29665) next »