Skip to content

[Bug]: SpinButton increment / decrement button bounds behaving improperly. #30234

Description

@Aloento

Library

React Components / v9 (@fluentui/react-components)

System Info

N/A

Are you reporting Accessibility issue?

None

Reproduction

https://react.fluentui.dev/?path=/docs/components-spinbutton--default#bounds

Bug Description

  1. increase to 20
  2. decrease to 19

Then, incrementButton has the disabled style.

  1. decrease to 0
  2. increase to 1

Then, decrementButton has the disabled style.


I think only when 0 / 20 should have the disabled style but it didn't.

Logs

No response

Requested priority

Low

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions