Why does the page reload when I click on the show password button I just made?
gperez0x
1 month ago
Nov 6, 2024, 10:01 PM
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
1 month ago
Nov 6, 2024, 10:04 PM
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
Nov 6, 2024, 10:15 PM
Thank yoouuuuuuuuuuu
gperez0x
1 month ago
Nov 6, 2024, 10:17 PM
You saved many hours of pain
😅1
Erik Beuschau
1 month ago
Nov 7, 2024, 7:26 AM
Believe me, I've stumbled upon that problem a lot of times 😅
Andreas Møller
1 month ago
Nov 7, 2024, 7:32 AM
It is a classic.
Namedoesnotfi
6 days ago
Dec 5, 2024, 9:38 PM
Im 2 hours late, but i finally made it to this thread...... The old button within a form trick. Thanks guys!!