You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The step prop currently only takes a number. This works well for linear scaled numbers.
I would like to use a dynamic step size (for a logarithmic scaled value):
increment: multiply value by 2
decrement: divide value by 2
Proposed solution
The prop could take a callable which returns the computed step size, e.g.:
Title is a bit misleading. You do not ask for dynamic step, but for straight override of the up/down behavior.
In the current state it is not possible to achieve with VNumberInput. While we can override slots, VNumberField implementation contains preventDefault() after detecting ArrowUp and ArrowDown thus preventing parent component from detecting such interactions. I was able to implement this with VTextField [Demo].
I wish I could understand this use case a bit more. In what scenario user would expect this kind of behavior instead of adding or removing defined step value? I am curious because I felt a bit confused when interacting with the example implementation.
Problem to solve
The
step
prop currently only takes a number. This works well for linear scaled numbers.I would like to use a dynamic step size (for a logarithmic scaled value):
Proposed solution
The prop could take a callable which returns the computed step size, e.g.:
The text was updated successfully, but these errors were encountered: