I'm using Preact:
<input type="number" onKeyup={event => console.log(event.target.value)} />
If I enter a period or an "e", it doesn't appear as part of event.target.value until I enter another digit after it.
E.g.
If the input value is 123, 123 gets logged.
If the input value is 123., 123 gets logged.
If the input value is 123.., 123 gets logged.
If the input value is 123.4, 123.4 gets logged.
Why does it behave like this? Is there a way to get the actual input (without removing type="number")?
123.or123..is not a valid numbertextinput instead, otherwise I'll need a lot ofnumber-specific logic.