From 0c31c238c1a28dcdbd8c12907988e7c7aebc4e32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sun, 30 Aug 2026 02:54:49 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(web):=20the=20whole=20contro?= =?UTF-8?q?l=20box=20opens=20its=20dropdown,=20and=20the=20photo=20uploads?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three bugs and a redesign, all from driving the real pages. The profile photo silently never uploaded. The shared file-input handler read `.file-upload-name` out of the input's label and set its text; the photo's label holds an avatar and no such span, so the read threw and the `requestSubmit` on the next line never ran. Nothing failed loudly — clean build, green tests, a picked file and no picture. The lookup is guarded, and the rule is written down: a shared handler never assumes an optional node, and the work that must happen goes before the decoration that might not. The status control had dead zones everywhere it looked clickable — the chevron, the dot, the gaps, the box's own padding — because only the inner button listened. This is the version that cannot come back: a delegated listener walks up from whatever was clicked and opens the element that *directly* contains a single trigger. That pins the hit area to the visual box and no further, and a new select inherits it by existing rather than by remembering to opt in. It needs `preventDefault` as much as `stopPropagation`: the new-task modal wraps its box in a `