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
Input text type number misbehavior #29469
Comments
|
I would like to work on this |
|
I think there is a workaround for this issue, according to the doc. Passing |
|
I see this isn't assigned to anyone? Can I give it a try? |
This solves the issue... |
|
Has this issue been resolved/closed yet? It seems like the problem has been solved @alisasanib . Unless there is something else that needs to be fixed. |
|
Is anyone working on this? If not I will make the changes and create a PR |
I don't think so. It is a good workaround though. What if I have a form with multiple inputs? I would like them to have same look and feel. In case the form have a number or date input mixed with other text inputs, I would be forced to make all input labels to be shrunk. I believe that issue should be properly resolved. |
|
It seems that no one is working on that. I have made the changes and will work on the tests. Soon I will create a PR, if no one does first. :) |
|
What is the location of the file which contains the sandbox code which needs to be edited in the repository? |
|
@wladimirguerra is this still open I would like to work on this. |
|
Hi Shabir,
Be my guest!
Wladimir
1�7 Em 26 de jul. de 2022, à(s) 15:47, Shabir Ahmad ***@***.***> escreveu:
ﻄ1�7
@wladimirguerra is this still open I would like to work on this.
1�7
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
|
Is this issue still open? I would like to work on it. |
|
@adarshanand67 have a look at this draft to attempt to fix the problem. It seems to be simple but it is hard to make a proper test case because of the testing library limitation. I am not sure that the changes fixed the problem. |
|
If this issue is still open can I give it a try ? |
|
@prankurnov15 feel free to take it. It's not assigned to anyone. |
|
Issue is with |
|
Is this issue still open ? I want to work on it |
|
@kanishbodhwani do you have an idea of how you'd like to fix the problem? The number input has some inherent issues, and its behavior differs across browsers. There's a good article describing the problem: https://stackoverflow.blog/2022/09/15/why-the-number-input-is-the-worst-input/ |
|
@michaldudak Can I make a function that restricts user to input e in the text field, I've already tried in code sandbox, It worked for me. Please correct me if I am wrong |
|
It's not just about "e". There are other characters ("+", "-", ".") that can make the input value invalid when misused. IMO recommending not to use |
|
There are not more, A single function can fix them all |
|
As stated in the description of the issue and the article I linked, other browsers behave differently. In Firefox, for example, you can type any character. While I appreciate your efforts, I don't want to include a half-baked solution. Additionally, your solution does not consider pasting a value in the input. |
|
Okay, Thank you for the update. Will solve another issue :) |
|
Hi, can I try this one? |


brunoluizkatz commentedNov 2, 2021
•
edited
Current Behavior😯
When you writes a "e" in the input text type number, the "title" of the field comes back to the middle of input text:
e, but we can force to write a dot in the end of the number, resulting in the same behaviorThey occurs directly into the codesandbox example for the input text page in the current release version
https://codesandbox.io/s/vvitc?file=/demo.js
Expected Behavior🤔
Steps to Reproduce🕹
Steps:
type="number"eYour Environment🌎
https://codesandbox.io/s/vvitc?file=/demo.js
The text was updated successfully, but these errors were encountered: