Skip to content

fix: respect readonly in number input steppers + short regression test - #19

Merged
acvigue merged 1 commit into
Levitree:mainfrom
jxc2000-b:fix/number-input-readonly
Oct 7, 2026
Merged

acvigue merged 1 commit into
Levitree:mainfrom
jxc2000-b:fix/number-input-readonly

Conversation

@jxc2000-b

Copy link
Copy Markdown

readonly number input steppers still allowing value changes through the +/- buttons. This is currently hidden by the hardcoded :model-value="5" in the story.
When bound to a reactive stepper readonly and adjust() do not guard against updates

Screen.Recording.2026-10-06.at.12.52.29.PM.mov

Disabled both buttons and guard adjustment handler when readonly is set. Added a regression test and bound the read-only story to a reactive state so unintended updates are visible.

Copilot AI balanced review requested due to automatic review settings October 6, 2026 23:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@jxc2000-b

Copy link
Copy Markdown
Author

@acvigue very short change pls review

@acvigue
acvigue merged commit 9dfa461 into Levitree:main Oct 7, 2026
2 of 4 checks passed
@acvigue

acvigue commented Oct 7, 2026

Copy link
Copy Markdown
Member

thx

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants