This is an automated email from the ASF dual-hosted git repository.

maciej pushed a commit to branch login-ui
in repository https://gitbox.apache.org/repos/asf/iggy.git

commit 15333218a0a8b2be161d480b97739361177f9192
Author: Maciej Modzelewski <[email protected]>
AuthorDate: Wed Mar 18 14:27:37 2026 +0100

    fix(web): submit login form on Enter instead of toggling password visibility
    
    The password toggle button had no explicit type, defaulting
    to "submit". Pressing Enter in the password field activated
    this button first, toggling visibility instead of logging in.
    
    Setting type="button" on the toggle excludes it from form
    submission, letting Enter reach the actual submit button.
---
 web/src/lib/components/PasswordInput.svelte | 1 +
 1 file changed, 1 insertion(+)

diff --git a/web/src/lib/components/PasswordInput.svelte 
b/web/src/lib/components/PasswordInput.svelte
index 158dfd58a..ae3bc0225 100644
--- a/web/src/lib/components/PasswordInput.svelte
+++ b/web/src/lib/components/PasswordInput.svelte
@@ -55,6 +55,7 @@
   {#snippet suffix()}
     <span>
       <Button
+        type="button"
         variant="rounded"
         class="w-[33px] h-[33px] p-0 flex items-center justify-center"
         onclick={(e) => {

Reply via email to