Skip to content

fix(web): expose showSlider in RangeInput types - #2388

Draft
NginxL wants to merge 1 commit into
appbaseio:nextfrom
NginxL:fix/2225-range-input-show-slider-type
Draft

NginxL wants to merge 1 commit into
appbaseio:nextfrom
NginxL:fix/2225-range-input-show-slider-type

Conversation

@NginxL

@NginxL NginxL commented Dec 6, 2026

Copy link
Copy Markdown

Description

Fixes #2225.

RangeInput forwards its remaining props to RangeSlider, whose implementation supports showSlider. The existing RangeInput test "should not render slider when ShowSlider is false" already exercises this prop. Only the RangeInputProps declaration was missing it, so TypeScript consumers saw a build error despite the runtime behavior being supported.

This adds showSlider?: boolean to RangeInputProps, matching RangeSliderProps.

Verification

  • Confirmed RangeInput renders <RangeSlider {...rest}> and forwards showSlider.
  • Confirmed the existing RangeInput.test.js already passes showSlider={false}.
  • git diff --check passed.

Testing gaps

  • The Jest suite and TypeScript compiler were not run because package dependencies are not installed and installing them was outside this task's offline dependency constraints.
  • No browser/demo recording was added: this is a declaration-only change with no runtime or visual behavior change.
  • Repository CI was not observed at PR creation.

AI disclosure

An AI coding agent located the prop forwarding and existing runtime coverage, made the one-line declaration change, and performed the static checks above. Maintainer review is required.

  • DCO sign-off present.

Assisted-by: AI coding agent
Signed-off-by: NginxL <8777777+NginxL@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

RangeInput Error for prop in Typescript

1 participant