1rosehip / 1rosehip/jplist-es6
sorting & [data-datetime-format / [data-date-format]
- Vorherrschende Sprache
- JavaScript
- Sterne
- 83
- Forks
- 37
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
sorting of dates isn´t working.
Due to a naming issue:
- in the [documentation](https://www.jplist.org/documentation/controls/dropdown-sort) you want the html-attribute "data-date**time**-format"
- in your code you are [looking for the html-attribute "data-date-format"](https://github.com/1rosehip/jplist-es6/blob/2b3a53e03a6c485755bfa52c24fc02eb3d6fc60d/src/1.2.0/controls/base/controls/sort/base-sort.control.js#L45)
we´re trying to use the datesorting in a dropdown filed
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
The issue is in base-sort.control.js line 45, where the code looks for 'data-date-format' but the documentation says 'data-datetime-format'. Check how date sorting is initialized and used in the dropdown control. Update the attribute name in the code to match the documentation, then test sorting with a date dropdown to verify it works.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- html, javascript
- Bereich
- documentation, frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 70/100