First of all, absolutely loving phoenix liveview! Running into a small issue though:
I have a “controlled” field (terminology borrowed from react world) in which form changes are sent back to the server using phx-change and the value is displayed using the “value” attribute on the input. The input is of type “number.”
When typing into the field, entering a decimal point sometimes causes the decimal point to be erased and the cursor to move to the beginning of the field. This makes it difficult to enter a field with a decimal value.
Changing the type to “text” solves the problem but this means that phones will display the full keyboard rather than a number pad which is undesirable. It would be great to be able to use the number type for this field.
Has anyone experienced this before? Any known workarounds?