Why does the page reload when I click on the show password button I just made?
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?
✅1
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” 🤞
gperez0x
4 months ago
Thank yoouuuuuuuuuuu
gperez0x
4 months ago
You saved many hours of pain
😅1
Erik Beuschau
4 months ago
Believe me, I've stumbled upon that problem a lot of times 😅
Andreas Møller
4 months ago
It is a classic.
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!!