Skip to content

UInputNumber Step - Step should define increment/decrement value, not force multiples #4323

Open
@abhishek-junghare

Description

@abhishek-junghare

Environment

https://ui.nuxt.com/components/input-number#step

Is this bug related to Nuxt or Vue?

Vue

Version

v3.1.3

Reproduction

  1. If step = 2 and I manually set the value = 3, the input automatically adjusts the value to 4 (nearest multiple of 2).
  2. If I change the step = 3 and manually set the value = 5, the input automatically adjusts it to 6 (nearest multiple of 3).

Description

https://ui.nuxt.com/components/input-number#step

  1. The step should only control the step size when increasing or decreasing the value.
  2. If I set the value = 3 with step = 2, the increments should go as 3, 5, 7, 9, ... and decrements should go as 3, 1, -1, -3, ...
  3. The component should not force the value to the nearest multiple of the step.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriagev3#1289

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions