1rosehip / 1rosehip/jplist-es6
Selected true not working on Sort datetime
- Ngôn ngữ chính
- JavaScript
- Star
- 83
- Fork
- 37
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
When a sort button (i have only tried the dropdown menu version) is set with data-type="datetime" and data-selected="true", this does not select the sort on jp list init.
I have set the data-datetime-format and the sorting workings just as intended if the dropdown menu item is selected by the user. It is simply not selected as the default when the page is first loaded.
`
Sort by
`
Test data
`
Title
Status
Created
dafafd
UNPUBLICED
03/08 - 2019 16:07
Tester
DRAFT
02/08 - 2019 23:51
`
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Look at the dropdown sort control initialization in the jplist library, likely in a file handling sort controls or datetime parsing. The issue is that data-selected="true" is not being applied for datetime type on page load. Check the code that reads data attributes and applies the default sort. Test by setting up a similar HTML structure and debugging the initialization sequence.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- html, javascript
- Lĩnh vực
- frontend
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 70/100