@optimusprime202
Posted
Hey @igbokwe-kosi, This is the way to do it.
Marked as helpful
Looking to hire developers?
Can someone help me out with fixing the bug that selects the 10% button when I press enter
@optimusprime202
Posted
Hey @igbokwe-kosi, This is the way to do it.
Marked as helpful
@maqsudtolipov
Posted
Hi there π
Congratulate on finishing your project π. You did a great job π‘
I give some suggestions to help you take your project design to the next level ππ
cursor: pointer
to all buttonsHappy coding β
Maqsud
Marked as helpful
@igbokwe-kosi
Posted
@maqsudtolipov Thanks! Iβve made the addition
@nakoyawilson
Posted
I experimented with your code in dev tools and adding type="button"
to all five <button class="form__tip-button form__tip--value" value="___">
elements fixed the bug. I think the bug was occurring because the default behaviour of a button inside a form is submit but I'm not certain. Maybe someone with more experience would be able to give a better explanation.
Marked as helpful
@igbokwe-kosi
Posted
@nakoyawilson Thank you so much! It fixed the bug.
@nakoyawilson
Posted
@igbokwe-kosi You're welcome!
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord