-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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 input] Mobile focus mode #39275
Comments
can you please assign this to me? |
assign it to me |
This same behaviour occurs in all places where NumberInput(Unstable_NumberInput) is being used as a Mui-focused class name is appending in MuiNumberInput-root on button press too and not only on input press. |
I hope this message finds you well. I was wondering if you're currently working on this particular issue. If not, I would greatly appreciate it if you could consider assigning it to me. |
Could you pls assign it to me? |
Meanwhile you can use the hook https://mui.com/base-ui/react-number-input/#hook and override the const handleStepperButtonMouseDown = event => {
event.preventDefault();
if (inputRef.current) {
inputRef.current.focus();
}
}; |
Steps to reproduce 🕹
Link to live example:
Steps:
Screen.Recording.2023-10-03.at.02.06.13.mov
Current behavior 😯
See how the input is focused
Expected behavior 🤔
It's not clear to me that we should focus the input. On mobile, it's quite annoying to see the virtual keyboard show when using the button is enough to set the expected value.
It doesn't seem that I'm the only one to be annoyed:
Screen.Recording.2023-10-03.at.02.09.47.mov
Your environment 🌎
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: