The carrot (keyboard cursor) can get confused when editing numbers with decimals in them. The behaviour is not consistent across Chrome 77 and Firefox 69, although both have various issues that make editing decimals very difficult.
Chrome 77:
Firefox 69:
Some of these issues might take multiple tries. It shouldn't be hard to see at least one fail state, though.
Chrome 77:
What is the actual result after following the steps to reproduce?
Various glitches, usually involving something being deleted or the cursor moving somewhere unintended.
What is the expected result after following the steps to reproduce?
The user should be able to reliably type decimal numbers into the text area.
Attach a sample if available, and screenshots, if applicable.
@ScottMichaud The described behaviors are all due to native browser navigation handling within an <input type="number" />. I tested the described behavior for Chrome in both 76 and 77 and I was actually unable to reproduce it, so it might be fixed in the latest Chrome patch. For Firefox, I was able to reproduce it and what you're describing seems like a bug in Firefox.
The spinner buttons are also native implementation of Firefox and are visible by default. To enable them in Chrome, you need to add this to your css:
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
-webkit-appearance: inner-spin-button !important;
}
Most helpful comment
@ScottMichaud The described behaviors are all due to native browser navigation handling within an
<input type="number" />. I tested the described behavior for Chrome in both 76 and 77 and I was actually unable to reproduce it, so it might be fixed in the latest Chrome patch. For Firefox, I was able to reproduce it and what you're describing seems like a bug in Firefox.The spinner buttons are also native implementation of Firefox and are visible by default. To enable them in Chrome, you need to add this to your css: