appbaseio / appbaseio/reactivesearch

RangeInput Error for prop in Typescript

Offen
#2,225 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
JavaScript
Sterne
4.9k
Forks
478
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**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> & Readonly<...> & Readonly<...>'.
Property 'showSlider' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes> & Readonly<...> & Readonly<...>'.
```

**Screenshots**
With the "non existing" prop:
![image](https://github.com/appbaseio/reactivesearch/assets/28624675/ad8e6750-1177-4aa7-8320-8cc6074eefec)

Without the "non existing" prop:
![image](https://github.com/appbaseio/reactivesearch/assets/28624675/2bce11f4-c29d-41d9-9e88-68cb82173878)

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.