Hello, thanks for posting.
I've asked the people who have been around the longest and they said hexadecimal input has never been officially supported. It did previously work.
We've had a longstanding feature request to get mobile browsers to show the numeric keyboard. In addressing that, we unintentionally forbade the browser from allowing any non-decimal input such as the `x` character. I've opened a
change to fix this, however you should note:
- We don't officially support hexadecimal in the number field. It happens to work now but we don't make guarantees that it will continue to do so as this is not something we test for and actually were not aware worked.
- The current behavior works on mobile because the default mobile UI uses `window.prompt` instead of the HTML input. There is no way to restrict the input type of the prompt or hint to the browser to use the numeric keyboard. This behavior wasn't changed before and isn't changed with the PR I just opened.
- You can now disable the modal inputs on mobile if you prefer to use the native experience. If you do, then mobile browsers will show the numeric keyboard. On iOS the user can manually switch to the alpha keyboard, but on Android it does not show the keyboard switcher UI. So, if you disable modal inputs then even after this change you will not be able to type hexadecimal into the number field on Android only.
So if you want to explicitly allow hexadecimal input, and you want to disable the modal inputs on mobile, you may wish to consider creating a custom subclass of the number field that removes the `inputMode` attribute from the HTML input element. Otherwise, after the next main release this behavior will look more like the previous behavior.
Maribeth