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

Email Input Field Type is Set to "text" Instead of "email" #182

Open
ayzerobug opened this issue Jan 29, 2025 · 0 comments
Open

Email Input Field Type is Set to "text" Instead of "email" #182

ayzerobug opened this issue Jan 29, 2025 · 0 comments

Comments

@ayzerobug
Copy link

While inspecting the rendered HTML of my document, I noticed that the field intended for email input has its type attribute set to "text" instead of "email". This is problematic because it prevents browsers from enabling built-in email validation and other related features (e.g., showing the email-specific keyboard on mobile devices).

Additionally, after reviewing the package's documentation, I found that there is no option to explicitly set the input type to "email". This limitation makes it difficult to ensure proper input validation and an optimal user experience.

Expected Behavior:

The package should allow developers to specify the inputType (or an equivalent option) so that fields requiring email input can be properly configured with type="email".

Steps to Reproduce:

  1. Render a form that includes an email input field using this package.
  2. Inspect the generated HTML in the browser’s developer tools.
  3. Observe that the type attribute of the input field is set to "text" instead of "email".

Proposed Solution:

  • Introduce a prop or configuration option that allows setting the inputType.
  • Ensure that when type="email" is specified, the field behaves correctly with built-in validation.

Would appreciate any guidance on this, and I’m happy to contribute if needed! 🚀

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

1 participant