I just tried to sync values between two numeric sp-textfields
like this:
inputA.addEventListener("input", () => {
inputB.value = inputA.value
});
This works fine for integers, but float numbers can’t be set correctly. I assume this happens due to the localization of point and comma.
The value is read as "1,5"
(1 comma 5), but writing it only works as "1.5"
(1 point 5).
The obvious workaround is inputB.value = inputA.value.replace(",", ".")
, but I still think that the value you read should also be accepted for setting.
Moreover, the following attributes are still missing:
- step
- min / max