Skip to content

onMinimumReached and onMaximumReached events are always fired #18

@misheki

Description

@misheki

<UIStepper displayValue={true} initialValue={item.qty} minimumValue={1} maximumValue={10} value={item.qty} onMinimumReached={console.warn(' min reached')} onMaximumReached={console.warn(' max reached')} onIncrement={() => this.increment(item.id)} onDecrement={() => this.decrement(item.id)} />

The onMinimumReached and onMaximumReached events are always triggered upon render even when the value is 3.

By the way, my UIStepper is inside a FlatList (loop).

Am I lacking a setting?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions