Skip to content

bug: Input numer doesnt support steps lower than 1 #85

@akemmanuel

Description

@akemmanuel

What version of FlyonUI are you using?

2.1.0

Which browsers are you seeing the problem on?

Chrome, but I don't think it works in any other browser.

Describe your issue

I just copied the example from the Input Number documentation. and tried to change the step to 0.5, but it does not work anymore.

<div class="input max-w-sm" data-input-number='{ "step": 0.5 }'>
      <input type="text" value="0" aria-label="Step control" data-input-number-input />
      <span class="my-auto flex gap-3">
        <button type="button" class="btn btn-primary btn-soft size-5.5 min-h-0 rounded-sm p-0" aria-label="Decrement button" data-input-number-decrement >
          <span class="icon-[tabler--minus] size-3.5 shrink-0"></span>
        </button>
        <button type="button" class="btn btn-primary btn-soft size-5.5 min-h-0 rounded-sm p-0" aria-label="Increment button" data-input-number-increment >
          <span class="icon-[tabler--plus] size-3.5 shrink-0"></span>
        </button>
      </span>
  </div>

If you could fix it in the next version, that would be cool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions