-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[pickers] When the IME is in hiragana, the input on the numeric keypad is wrong. #9465
Comments
@mui/explore Could anyone on Windows test this? |
I can't really reproduce the issue on Windows either 🤔 |
I'm sorry. |
I'm sorry. |
Maybe related to react having issues about IME facebook/react#3926 I'm not on windows, but maybe a way to reproduce it could be to look at the If you go there (a simple input field with an Here is the result on my computer. Each time I press 1 the Screencast.from.30-06-2023.13.22.47.mp4 |
I checked and this is how it works. festive-river-vmx7kc.-.CodeSandbox.-.Google.Chrome.2023-07-03.10-37-09.mp4 |
Thanks for the recording. Sounds like pressing a key leads to 3 That sounds quite hard to handle 🤨 |
When the IME is set to "Hiragana", the operation is strange even if I press anything other than the numeric keypad. React.Date.Picker.component.-.MUI.X.-.Google.Chrome.2023-07-04.10-31-02.mp4 |
@flaviendelangle From some investigation, it seems this behavior is named composition similar to what we do when we creating letters such as ë It triggers a
A workaround found: facebook/react#3926 (comment) |
It reminds me a bit of mui/material-ui#19499, but it's different here. |
Duplicates
Latest version
Steps to reproduce 🕹
I have a problem when using a Japanese keyboard.
And this defect was also confirmed by https://mui.com/x/react-date-pickers/date-picker/.
And this defect was also confirmed by https://mui.com/x/react-date-pickers/time-picker/.
I'm sorry,I explained it badly.
Steps:
1.Use the full/half-width key to set the IME to "ひらがな".
2.focus on the input field.(Make sure the IME is set to "あ.")
3.press "1" on the numeric keypad.(any number is fine.)
4."11" appears in the input field.
Current behavior 😯
I have a problem when using a Japanese keyboard.
When "1" is pressed on the numeric keypad, "1" should appear in the input field.
However, if you press "1" when the number is full-width, the input field will display "11".
After repeating the process many times, the input becomes incorrect.
When I pressed the numeric keypad in full-width characters, I confirmed that onChange was working three times.
React.Date.Picker.component.-.MUI.X.-.Google.Chrome.2023-06-26.14-13-50.mp4
Expected behavior 🤔
When I press a numeric keypad in full-width characters, I want the number I press to be displayed in the input field.
Example: Press "1" → "1" appears in the input field.
Context 🔦
In Japan, hiragana is often used, the display will frequently be incorrect if it is not changed.
Your environment 🌎
@mui/x-data-picker: v6.9.0
System:
OS: Windows 10 10.0.19042
Binaries:
Node: 16.17.1 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 8.15.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 114.0.5735.134
Edge: Spartan (44.19041.1023.0), Chromium (114.0.1823.58)
npmPackages:
@emotion/react: ^11.11.1 => 11.11.1
@emotion/styled: ^11.11.0 => 11.11.0
@mui/base: 5.0.0-beta.4
@mui/core-downloads-tracker: 5.13.4
@mui/material: ^5.13.5 => 5.13.5
@mui/private-theming: 5.13.1
@mui/styled-engine: 5.13.2
@mui/system: 5.13.5
@mui/types: 7.2.4
@mui/utils: 5.13.1
@mui/x-date-pickers: ^6.9.0 => 6.9.0
@types/react: ^18.0.24 => 18.0.24
react: ^18.2.0 => 18.2.0
react-dom: ^18.2.0 => 18.2.0
typescript: ^4.8.4 => 4.8.4
Order ID or Support key 💳 (optional)
No response
The text was updated successfully, but these errors were encountered: