Skip to content

Incorrect behavior of increment/decrement controls #8114

@HaTrang96

Description

@HaTrang96

Dependencies check up

  • I have verified that I use latest version of all @mantine/* packages

What version of @mantine/* packages do you have in package.json?

8.1.3

What package has an issue?

@mantine/core

What framework do you use?

Vite

In which browsers you can reproduce the issue?

None

Describe the bug

Steps to reproduce:

  1. Create a NumberInput component.
  2. Set max={20}.
  3. Copy "999999999999999999" and paste it into the NumberInput.
  4. Click outside the input to blur.
  5. Click back into the input.
  6. Click outside again to blur.

Actual Output:

  • After step 3, the increment control is enabled.
  • After step 6, the increment control becomes disabled.

Expected Output:

  • The increment control should remain disabled after both step 3 and step 6.
Image

If possible, include a link to a codesandbox with a minimal reproduction

No response

Possible fix

No response

Self-service

  • I would be willing to implement a fix for this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedCompleted issues that will be published with next patch (1.0.X)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions