Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

RangeInput Error for prop in Typescript

Đang mở
#2,225 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
react, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu bằng cách xác định component RangeInput và định nghĩa props TypeScript của nó, sau đó đối chiếu các props được hỗ trợ với tài liệu tham chiếu chính thức cho showSlider. Xác minh hành vi dự kiến khi showSlider là false và cập nhật kiểu liên quan cũng như độ bao phủ để build chấp nhận prop và slider vẫn được ẩn.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

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

Ngôn ngữ chính
JavaScript
Star
4.9k
Fork
479
Merge trung bình
4 ngày 10 giờ
Pull request đã merge (30 ngày)
4

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của appbaseio/reactivesearch

Tất cả issue của appbaseio/reactivesearch

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.