Help forum

Why does the page reload when I click on the show password button I just made?

  • gperez0x

    2 years ago

    I can't see where this error could come from. From no part of the clickable elements is something that should cause this to happen.

    Any idea of what this could be about?
    1303841783444148264-SCR-20241106-qmwa.png
    ✅1
  • Erik Beuschau

    2 years ago

    I’m not sure, but perhaps you put the button inside of a form? The default type for a button is “submit”. Try adding a “type” attribute on your button with a value of “button” 🤞
  • gperez0x

    2 years ago

    Thank yoouuuuuuuuuuu
  • gperez0x

    2 years ago

    You saved many hours of pain
    😅1
  • Erik Beuschau

    2 years ago

    Believe me, I've stumbled upon that problem a lot of times 😅
  • Andreas Møller

    2 years ago

    It is a classic.
  • Namedoesnotfi

    1 year ago

    Im 2 hours late, but i finally made it to this thread...... The old button within a form trick. Thanks guys!!
  • Daniel

    1 year ago

    Toddle AI led me to this comment which was the solution I needed 😎
    🤖1