V6: Option to disable components automatic creation on DOMContentLoaded event.

Đang mở
#43,372 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
15/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
frontend

Hướng nghiên cứu

The payload names no files or tests. It describes automatic creation of the Combobox and Datepicker components on the DOMContentLoaded event, so start by finding where that auto-initialization happens in the JavaScript source. The issue leaves open whether the opt-out should be global or per component, and that choice needs a maintainer decision before any code. Done would mean an agreed design, then an option that turns off auto-creation while getOrCreateInstance still works.

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

Mô tả

feature js v6
Prerequisites
Proposal

Right now the components like Combobox and Datepicker are created automatically on on DOMContentLoaded event.

Motivation and context

When loading components via Ajax, we manually call getOrCreateInstance, there is no need to the automictic initialization.

Is it possible to have a global or per component configuration option to disable this automatic initialization.

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

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 twbs/bootstrap

Tất cả issue của twbs/bootstrap

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.