-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Stepper allows the value to increment past max when min, max, value set to 1. #28330
Copy link
Copy link
Closed
Closed
Copy link
Labels
area-controls-stepperStepperStepperpartner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborations/needs-reproAttach a solution or code which reproduces the issueAttach a solution or code which reproduces the issuet/bugSomething isn't workingSomething isn't working
Description
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).
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-controls-stepperStepperStepperpartner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborations/needs-reproAttach a solution or code which reproduces the issueAttach a solution or code which reproduces the issuet/bugSomething isn't workingSomething isn't working

