Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Text color menu submits my form #453

Open
1 task done
Keneficka opened this issue Feb 15, 2025 · 2 comments
Open
1 task done

[BUG] Text color menu submits my form #453

Keneficka opened this issue Feb 15, 2025 · 2 comments

Comments

@Keneficka
Copy link

Has this bug been raised before?

  • I have checked "open" AND "closed" issues and this is not a duplicate

Description

All 3 buttons, Text, Background and Color Picker submit my form which posts my message before finished.

Thanks!

Screenshots

Image

Do you want to work on this issue?

No

@Keneficka
Copy link
Author

There is actually a pretty easy workaround. I just prevent default on onSubmit and pass my submit handler onClick.

<form onSubmit={(e) => {e.preventDefault();}}>
and
<input type="button" value="Post" className={styles.postButton} onClick={handleSubmit}/>

@Darginec05
Copy link
Collaborator

@Keneficka thanks for reporting.
yeah, easy fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants