Skip to content

NumberPicker: Press and hold increment breaks when hitting the min/max value #567

Description

@charlieTheBotDev

Context

If you set a min/max on a number picker and hold down the increment/decrement button until you hit the min/max value, the number picker gets stuck at the min/max.

number-picker

Seems to be the loop not exiting correctly that handles the increment/decrement when pressing and holding

Possible Fix

Correctly exit the loop when pressing and holding the button

Steps to Reproduce

  1. Go to https://hexagonjs.io/docs/number-picker/
  2. Press and hold 'up' on the third number picker example until it hits 10
  3. Attempt to decrease the number (or type something in)

Your Environment

  • Hexagon Version: 2.7.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions