Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RangeInput Error for prop in Typescript #2225

Open
vitor-l opened this issue Jun 21, 2023 · 1 comment
Open

RangeInput Error for prop in Typescript #2225

vitor-l opened this issue Jun 21, 2023 · 1 comment
Labels

Comments

@vitor-l
Copy link

vitor-l commented Jun 21, 2023

Affected Projects
Next

Library Version: 3.23.1

Describe the bug
I'm using the RangeInput component, but I don't want to show the slider. I don't know how, but when I use the prop showSlider with the value false, It works with error. Basically, the slider is gone, but It breaks the build. I thought that was a problem with the version, but even in the newest package, there is no prop to fulfill this purpose. The weird thing is that I found that prop in one of the official docs for that lib.

The Typescript error is this:

Type '{ componentId: string; dataField: string; "data-cy": string; URLParams: false; showSlider: boolean; snap: boolean; style: {}; value: Range | undefined; onChange: (value: any) => void; validateRange: ([start, end]: number[]) => boolean; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<RangeInputProps, any, any>> & Readonly<...> & Readonly<...>'.
  Property 'showSlider' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<RangeInputProps, any, any>> & Readonly<...> & Readonly<...>'.

Screenshots
With the "non existing" prop:
image

Without the "non existing" prop:
image

@vitor-l vitor-l added the bug label Jun 21, 2023
@with-a-k
Copy link

I'm not seeing any such prop in the documentation for RangeInput.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants