Skip to content

Start button stays active during running state #3

@ayyazzafar

Description

@ayyazzafar

Reproduction:

  1. Open index.html
  2. Click Start — timer begins counting down
  3. Click Start again

Expected: the second click is a no-op (or the button is visually disabled).
Actual: start() early-returns because intervalId is already set, which is correct logic-wise, but the button remains clickable and gives no feedback. Users have reported clicking Start repeatedly thinking it isn't responding.

Fix proposal: toggle a disabled attribute on #startBtn once a session is running, and re-enable it on stop() or reset().

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions