1rosehip / 1rosehip/jplist-es6
localStorage or sessionStorage + reset button
- Vorherrschende Sprache
- JavaScript
- Sterne
- 83
- Forks
- 37
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Is it possible to reset all fields (or ones with data-id) after button press, while using localStorage or sessionStorage?
I tryed [this](https://www.jplist.org/documentation/controls/reset) and [this](https://www.jplist.org/documentation/api/reset-controls), but without any luck.
Maybe i'm doing it wrong, i have 4 _select filters_ (each one is defined with diferent _data-id_) and a _search_ field. Reset works fine if i don't use storage or use cookies, but then on page refresh no values are saved.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
The issue is about resetting form fields (select filters and a search field) that use localStorage or sessionStorage for persistence. The user tried the reset controls from the jPList documentation without success. Start by examining the jPList library's storage handling and reset API. Look for the data-id attributes on the filters and the reset button implementation. Check how storage is cleared or reset on button press, and verify that the page refresh retains values correctly after a reset.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript
- Bereich
- frontend, web-dev
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100