tgrosinger / tw5-checklist

Simple checklist widget for TiddlyWiki5:
https://tgrosinger.github.io/tw5-checklist/
51 stars 13 forks source link

[BUG] Duplicate Items Causes Checklist Works Wrongly #51

Open kookma opened 2 years ago

kookma commented 2 years ago

There is an edge case where tw5-checklist works wrongly! Try to create a checklist with two similar entries like

[ ] Milk
[ ] Bread
[ ] Milk

Then click on one of [ ] Milk it wrongly checks the other one!

pmario commented 2 years ago

I think, what you see is the "resorting" if you check the first milk element. If you click the second one it will be checked and stays.

If you click the first element it will be checked and sorted to the end of the list, which looks like as if the second element was checked.