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: input placeholder attr will be treated as className #1257

Closed
NMTuan opened this issue Jul 14, 2022 · 5 comments · Fixed by #1263
Closed

bug: input placeholder attr will be treated as className #1257

NMTuan opened this issue Jul 14, 2022 · 5 comments · Fixed by #1263

Comments

@NMTuan
Copy link
Author

NMTuan commented Jul 14, 2022

I find this

image

I think, some attrs like placeholder should be a default options.

@zyyv
Copy link
Member

zyyv commented Jul 14, 2022

You can use un-placeholder="border bg-red-400" instead of it

@NMTuan
Copy link
Author

NMTuan commented Jul 14, 2022

You can use un-placeholder="border bg-red-400" instead of it

Sorry, i didn't express clearly
i want placeholder === 'border bg-red-400', and style !== 'border bg-red-400'.
like this:

image

@zyyv
Copy link
Member

zyyv commented Jul 14, 2022

You can use un-placeholder="border bg-red-400" instead of it

Sorry, i didn't express clearly i want placeholder === 'border bg-red-400', and style !== 'border bg-red-400'. like this:

image

Sorry, i understand your mean now.

@antfu
Copy link
Member

antfu commented Jul 14, 2022

Maybe we should add placeholder intro the default ignore list

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

Successfully merging a pull request may close this issue.

3 participants