mirror of
https://github.com/ancsemi/Haven.git
synced 2026-11-03 20:43:09 +00:00
The <label for='avatar-file-input'> elements created a native label-input association. In many browsers, e.preventDefault() on label click does NOT reliably prevent the native for-attribute behavior, causing both the native activation AND the JS fileInput.click() to fire simultaneously which opens the file dialog twice and immediately cancels it. Fix: Changed <label> to <button type='button'> and removed the for attribute entirely. The JS click handler is now the sole mechanism for opening the file dialog, eliminating the conflict.