谷歌浏览器在Android(只有Android的)不允许使用十进制型号和步长="任何"步长、不允许、型号、浏览器

2023-09-04 11:03:01 作者:有你的每一天都是情人节、

我有我不知道这是否是一个错误,对Android键盘有些古怪,有问题等。

I have a problem that I'm not sure if it is a bug, some weirdness about the android keyboard, etc.

假设你有这个输入框的地方:

Suppose you have this input box somewhere:

    <input type='number' step='any' >

在默认的ICS Android浏览器,在Safari移动浏览器,iOS的Chrome浏览器(也可能是其他人),这不正是你所期望的:它带来的(因为步)与数字和小数点的键盘。

On the default ICS android browser, the Safari mobile browser, iOS Chrome (and probably others), this does exactly what you would expect: it brings up a keyboard with both numbers and a decimal point (because of the step).

不过在Chrome上的Andr​​oid(正如我说,只有这个版本),它带来了不带小数点数字键盘。

However on Chrome on android (and as I said only this version), it brings up a number pad with no decimal.

有谁知道一个解决办法?

Does anyone know a workaround?

其他详细信息

有似乎仅限于三星键盘和谷歌浏览器的组合。以下工作:

It appears to be limited to a combination of the Samsung keyboard and Google Chrome. The following works:

在谷歌浏览器与第三方键盘 在主浏览器和Firefox与三星键盘

所以,看来三星的键盘和Chrome两种,导致了问题的唯一组合。

So, it seems only the combination of both the Samsung keyboard and Chrome that causes a problem.

推荐答案

这个问题看起来是固定的 HTTPS:但是,该补丁还没有使它成为//$c$c.google.com/p/chromium/issues/detail ID = 151738#C17在Chrome发布呢。

This issue appears to be fixed https://code.google.com/p/chromium/issues/detail?id=151738#c17 but the fix hasn't made it into a Chrome release yet.

如果你没有很多用户,有两种解决方法:

If you don't have many users, there are two workarounds:

要求用户安装的谷歌键盘并启用它 - 看到的https://play.google.com/store/apps/details?id=com.google.android.inputmethod.latin

要求用户使用内置的浏览器(要求用户使用的应用程序,标有世界图标互联网)。

Ask user to use the native browser (ask user to use the App with the world icon labelled "Internet").

这个错误应该不会影响使用的WebView应用程序,因为之前奇巧的WebView中使用的原生浏览器(我认为这是正确的!)。

The bug shouldn't affect Apps that use WebView, because before KitKat WebView used the native browser (I think that is correct!).