Skip to content

Inputs allow leading zeros (e.g. "030" seconds or "0021" kg) #97

@mslowin

Description

@mslowin

Describe the bug
Numeric inputs for workout sets (such as time, weight, reps, etc.) allow entering values with leading zeros (e.g., "030" seconds, "005" reps). This can be confusing and is not standard input behavior.

To Reproduce

  1. Go to a workout session and add or edit a set.
  2. In any numeric input (minutes, seconds, weight, reps, etc.), enter a value with leading zeros.
  3. Save or finish the set.
  4. See that the value is saved and displayed with leading zeros.

Expected behavior
Numeric inputs should not allow leading zeros. Entering "007" should automatically become "7", or the input should prevent leading zeros.

Screenshots
Image

Desktop
OS: Windows 11
Browser: Chrome

Smartphone
Device: Samsung Galaxy S24
OS: Android
Browser: Chrome

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions