Skip to content

Typed numbers in Settings aren't saved until you press Return or click another field #229

Closed

Description

@Seb-GRAF

What happens

In Settings, after typing a number into a number field (for example, Bar height or Corner radius), clicking empty space in the window doesn't apply it. The value is saved only after pressing Return or clicking another field.

Steps to reproduce

  1. Open Settings and select the bar.
  2. Type a new value in "Side inset".
  3. Click an empty area of the window.

Expected

The bar updates with the new value, as it does when you scrub, use the arrow keys or click another field.

Environment

StableBar on main (e944864), macOS 26.

Diagnosis

NumberField (Sources/StableBar/SettingsComponents.swift) calls commit() only from onSubmit and when focused becomes false. On macOS, clicking empty space doesn't take focus from a text field, so neither fires. Possible fixes: commit while typing through the existing NumberDraft pause, or clear focus when the window background is clicked. Text rows (TextDraft) already update while you type.

Related

#164 delays bar updates while typing in the inspector; it doesn't change when number fields save.

Triaged by Claude Code (claude-opus-5-5).

Activity

  1. added
    bug
    on Oct 22, 2026
  2. stablebar-releases commented on Oct 23, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.6.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions