Pricing Blog

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

  • corvos_-1303841782270001162

    gperez0x

    1 year 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
  • erikbeus-1303842496299925574

    Erik Beuschau

    1 year 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🤞
  • corvos_-1303845245053829190

    gperez0x

    1 year ago

    Thank yoouuuuuuuuuuu
  • corvos_-1303845650940825670

    gperez0x

    1 year ago

    You saved many hours of pain
    😅1
  • erikbeus-1303983855027617823

    Erik Beuschau

    1 year ago

    Believe me, I've stumbled upon that problem a lot of times 😅
  • andreasmoller-1303985334757101578

    Andreas Møller

    1 year ago

    It is a classic.
  • namedoesnotfi-1314345206060945560

    Namedoesnotfi

    11 months ago

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

    Daniel

    10 months ago

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