PricingDocsAcademy
Bluesky ...
Wed, Dec 11, 9:39 PM

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

  • /attachments/1303841782270001162/1303841782789963787/Grabacion_de_pantalla_2024-11-06_a_las_6.53.12_p._m..mov

    gperez0x

    1 month 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?
    SCR-20241106-qmwa.png
    1
  • Erik Beuschau

    1 month 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

    1 month ago

    Thank yoouuuuuuuuuuu
  • gperez0x

    1 month ago

    You saved many hours of pain
    😅1
  • Erik Beuschau

    1 month ago

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

    1 month ago

    It is a classic.
  • Namedoesnotfi

    6 days ago

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

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.