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

Smart Select "el" Parameter

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

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

Đánh giá

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

Hướng nghiên cứu

Bắt đầu bằng cách mở CodeSandbox được liên kết và tái hiện lỗi với smartSelectParams được đặt thành el dưới dạng selector và dưới dạng HTMLElement. Truy vết điểm vào của Smart Select và cách xử lý el, sau đó xác minh rằng cả hai dạng đều hoạt động mà không gặp lỗi thuộc tính undefined. Hoàn tất khi kịch bản CodeSandbox được báo cáo hoạt động như mong đợi.

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

Mô tả

Framework7 version: 8.3.4
Platform and Target: Desktop Any Browser
Live Link or CodeSandbox: https://codesandbox.io/p/sandbox/jovial-wescoff-c2n56l?file=%2Fsrc%2FHome.tsx

Describe the bug

Using the "el" parameter in any form (CSS-Selector or HTMLElement) throws an error about reading properties of undefined.

To Reproduce

Just open the sandbox or try building a smart-select with smartSelectParams={{el: "#your-id"}}

Expected behavior

It should work

Actual Behavior

It doesn't

Additional context

No example in the documentation uses the "el" property (Not for smart-select and not for any of the others components that could in theory use the "el" property; e.g. Popup).

Could not find any discussion in the forum on this.

Not much to say about it. It just does not work, or i am on the completely wrong path about how i should use that parameter.

Usecase: All i want to do is to add an id to the smart-select-page, so that i can apply styles specifically to that part of my application. I need this behaviour to show legacy content without destroying the new designs.

Ngôn ngữ chính
JavaScript
Star
18.8k
Fork
3.2k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 framework7io/framework7

Tất cả issue của framework7io/framework7

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.