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

Number component template: type="number", instead of type="text" #5699

Open
bobslee opened this issue Jul 18, 2024 · 0 comments
Open

Number component template: type="number", instead of type="text" #5699

bobslee opened this issue Jul 18, 2024 · 0 comments
Assignees

Comments

@bobslee
Copy link
Contributor

bobslee commented Jul 18, 2024

Why does the template of the Number component have a type="text" instead of type="number" ?

With type="number" there're some additional features possible (like step, shown in the screenshot).

Documentation <input type="number">
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number

image

Unfortunately it's not possible to override the type attribute from the Layout HTML Attributes, see screenshot below.
The <input type="text"> remains.

image

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