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

  • corvos_-1303841782270001162

    gperez0x

    4 months 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

    4 months 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

    4 months ago

    Thank yoouuuuuuuuuuu
  • corvos_-1303845650940825670

    gperez0x

    4 months ago

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

    Erik Beuschau

    4 months ago

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

    Andreas Møller

    4 months ago

    It is a classic.
  • namedoesnotfi-1314345206060945560

    Namedoesnotfi

    3 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

    2 months ago

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

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.