Skip to content

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

@tuanchien

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-stepperStepperpartner/syncfusionIssues / PR's with Syncfusion collaborations/needs-reproAttach a solution or code which reproduces the issuet/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions