Vocabulary dictionary

Kanji dictionary

Grammar dictionary

Sentence lookup

test
 

Forums - Cannot use Japanese numerals as valid input

Top > renshuu.org > Bugs / Problems



avatar
Gibolt
Level: 790

Unable to save settings when numerical values are input while Japanese keyboard is open. 2 works, but "2" doesn't. also doesn't work (not as big of an issue IMO). This issue probably exists in a lot of places. May be worth trying to coerce numerical values in numerical inputs.

1
1 year ago
Report Content
avatar
マイコー
Level: 302

This is an interesting issue. There's a few conflicting things - maybe there's a solution I'm missing.

1. On the client side, the input boxes are set to type="number", so it's rejecting any of the "J numbers" before it can even get saved into the box for submission. It doesn't *look* like I can intercept that, especially with the Japanese IME hijacking the input for auto-completion.

2. The backend that validates numbers already does the 0 to 0 style conversion, has for years (at least, anywhere where I'm validating on a number, and not a more general string)

So I could remove type="number", but that would remove the best part of that with regards to mobile devices, which is popping up the numeric pad instead of the keyboard.

I'm actually kinda curious as to how you got the 3 in there - must be a browser-dependent thing, because Chrome rejects it outright - it is there in the Japanese IME, then vanishes as soon as you hit enter to "confirm" the IME selection.

2
1 year ago
Report Content
avatar
Gibolt
Level: 790

Safari lets me input it, but the input.value shows it is "". I confirmed Chrome won't let you put anything there, nor will Chrome on Android, even when pasting.

I guess I can just deal with it And fix it when it happens

1
1 year ago
Report Content
Getting the posts




Top > renshuu.org > Bugs / Problems


Loading the list
Lv.

Sorry, there was an error on renshuu! If it's OK, please describe what you were doing. This will help us fix the issue.

Characters to show:





Use your mouse or finger to write characters in the box.
■ Katakana ■ Hiragana