Replies: 1 comment
-
So trame does not implement that logic. This is part of vue.js, trame just expose what is available. See the documentation. You can see what we did here to fix that behavior, but maybe the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello again,
After seeing numerous suggestions to use
v_model_number
instead ofv_model
for handling numeric inputs, I decided to give it a try with the following code:Using
v_model_number
is great because it ensures the input is treated as a number instead of a string. However, I encounter issues when inputting large scientific values, such as1e23
.The problem is that
v_model_number
updates the value on every input event. If1e23
is entered, the value is prematurely formatted after typing1e2
, converting it to100
before the user can finish entering the intended input.Would it be possible to have a mechanism to delay this behavior and trigger the value conversion only on the
change
event instead of every input change? I have been utilizing custom functions on the change property to handle type/scientific number format conversion, but having built-in support for this use case would be wonderful. Maybe something likev_model_scientific_number
?Beta Was this translation helpful? Give feedback.
All reactions