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

add 'placeholder' and 'accept' attributes to input tag #44

Merged
merged 2 commits into from
Sep 24, 2024

Conversation

alephao
Copy link
Contributor

@alephao alephao commented Sep 24, 2024

I thought about adding some mime types to the accept attribute, but there are so many possibilities that I just left it as an ExpressibleByStringLiteral. I didn't left it as String in case someone wants to add some static values in their projects, for example, in my project I will probably add static let imagePng and static let imageJpg.

Let me know if you rather do it differently.

https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept

Also, sorry for so many PRs, I'm just adding stuff as I'm needing

@sliemeobn
Copy link
Owner

lgtm, I think you made the right choice.

> Also, sorry for so many PRs, I'm just adding stuff as I'm needing
are you kidding? thank you for your contributions!

@sliemeobn sliemeobn merged commit 5ed7c2d into sliemeobn:main Sep 24, 2024
5 checks passed
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 this pull request may close these issues.

2 participants