Skip to content

Widen an interval's range around its value again - #146

Merged
ryankiley merged 1 commit into
mainfrom
interval-range-widen
Oct 10, 2026
Merged

ryankiley merged 1 commit into
mainfrom
interval-range-widen

Conversation

@ryankiley

Copy link
Copy Markdown
Owner

A regression from #131, caught in the release review. An interval given a value but no min or max now spanned only that value ([20, 80] gave a 20-80 track, both handles pinned at the ends), where 0.3.1 gave 0-240; the markup form regressed the same way. The control now derives an absent bound from its two ends, the same way the shorthand and a verbose slider do, so 0.3.1's ranges are back; explicit bounds and the shorthand are unchanged. The existing test only checked the value, so it now checks the handles' range too, and fails without the fix.

Since #131 passed the interval's verbose form through as given, a value with no min or max locked the range to the value itself: [20, 80] spanned 20-80 instead of 0.3.1's 0-240, pinning both handles at the ends, in the markup form too. The control now derives an absent bound from its two ends, as the shorthand and a verbose slider do, and the test checks the handles' range, not just the value.
@ryankiley
ryankiley merged commit 8b934dc into main Oct 10, 2026
2 checks passed
@ryankiley
ryankiley deleted the interval-range-widen branch October 10, 2026 23:06
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.

1 participant