Skip to content

Unexpected behaviour min/max options #2846

@EranosyanEduard

Description

@EranosyanEduard

Hello.

I try use the numeric extensions, but min options don't work. I can't input a decimal value lower than -30.999. For example, -32.123 Why?

import Inputmask from "inputmask";

new Inputmask({
  alias: "numeric",
  digits: 3,
  min: -100,
  max: 30,
}).mask("input");
  • link to repo to reproduce a bug (npm ci && npm run dev);
  • Node: 20.17.0;
  • Npm: 10.8.2;
  • OS: Windows 10;
  • Browser: Google Chrome Latest;
  • Inputmask version: 5.0.9;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions