Skip to content

Does not reset forms #80

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

Closed
nimabrownlee opened this issue Sep 12, 2021 · 1 comment
Closed

Does not reset forms #80

nimabrownlee opened this issue Sep 12, 2021 · 1 comment

Comments

@nimabrownlee
Copy link

What version of @tailwindcss/forms are you using?

v0.3.3

What version of Node.js are you using?

v16.5.0

What browser are you using?

Chrome

What operating system are you using?

MacOS

Reproduction repository

https://gitlab.com/nimabrownlee/tailwindforms-bug

Describe your issue

I've absolutely no idea why it doesn't work. I have it setup in another project but this one doesn't work at all. I'm not sure if I've missed a step. It doesn't reset the styling of form inputs.

@adamwathan
Copy link
Member

Hey! You're missing type="text" on your input.

From the docs:

Note that for text inputs, you must add the type="text" attribute for these styles to take effect. This is a necessary trade-off to avoid relying on the overly greedy input selector and unintentionally styling elements we don't have solutions for yet, like input[type="range"] for example.

Hope that helps 🍻

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