Skip to content

Stepper allows the value to increment past max when min, max, value set to 1. #28330

Closed

Description

@tuanchien

Description

On the Stepper UI, when the minimum is set to 1, maximum is set to 1, and value is set to 1, the UI allows you to click "+" to keep incrementing beyond 1 (incorrect). The "-" is greyed out (correct).

Initial state:
Image

After increment:
Image

Tested on:
maui-windows 9.0.14/9.0.100 SDK 9.0.200, VS 17.13.35828.75

Might impact other platform targets too.

Steps to Reproduce

Add a basic stepper to xaml:

<Stepper
    HorizontalOptions="Center"
    Increment="1"
    Minimum="1"
    Maximum="1"
    Value="{Binding PageNumber}" />

On the view model side:

    [ObservableProperty]
    public partial int PageNumber { get; set; }

I would have expected that if max, min, and value are set to 1, then the "-" and "+" stepper buttons are both greyed out and unclickable.

Link to public reproduction project repository

No response

Version with bug

9.0.14 SR1.4

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows, I was not able test on other platforms

Affected platform versions

maui-windows 9.0.14/9.0.100 SDK 9.0.200, VS 17.13.35828.75

Did you find any workaround?

No response

Relevant log output

Activity

  1. added
    t/bug
    on Mar 11, 2025
  2. added
    partner/syncfusion
    on Mar 13, 2025
  3. added this to the Backlog milestone on Mar 13, 2025
  4. added
    s/needs-repro
    on Mar 13, 2025
  5. added
    s/no-recent-activity
    on Mar 18, 2025
  6. removed this from the Backlog milestone on Mar 21, 2025
  7. tuanchien commented on Apr 10, 2025

    @tuanchien
    Author

    @SubhikshaSf4851 appreciate the patch. Thanks :)

  8. removed
    s/no-recent-activity
    on Apr 10, 2025
  9. locked and limited conversation to collaborators on May 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-stepperpartner/syncfusions/needs-reprot/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions