Skip to content

Let the LIMIT box be cleared and retyped #848

Closed

Description

@EVWorth

Severity: P2.

What happens

On http://localhost:1420/?mock=connected, with the toolbar LIMIT on and set to 1000:

  1. Click the number box, select all, press Backspace. It still reads 1000, because the empty value is refused.
  2. Type 250. The box now reads 10002: the 2 was appended to 1000, and 5 and 0 were refused because they pushed the value over 100,000.
  3. Select all and type 500000. It stops at 50000 with no message.

The next query silently uses that unintended limit.

Cause

src/components/editor/QueryToolbar.tsx:333-345: the input is controlled by value={maxResultRows}, and onChange only stores values in 1–100,000. Every intermediate draft (empty, or over the max) is rejected on each keystroke.

Fix

Keep a local draft string. Validate and clamp it on blur or Enter, revert on Escape, and show the allowed range (1–100,000) when the value is invalid.

Part of #783.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added a commit that references this issue on Oct 23, 2026
    df6b03c
  3. added a commit that references this issue on Oct 23, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions