I need to limit input to only one number and one decimal. For example to be able to put 9.5 but not 95. Only thing I could think of is something like this:
let length = e.currentTarget.textContent.length;
if (length >= 3) {
console.log(length);
e.preventDefault();
}