AdminLTE icon indicating copy to clipboard operation
AdminLTE copied to clipboard

[Question] Are Multiple Todo-Lists within the Same Page Not Supported? (v3.1.0)

Open TOMassey opened this issue 3 years ago • 2 comments

I've actually found a really neat utilization of todo-lists for my web application (made for recording daily meeting data). I'm creating a settings page for admins, and one of those settings includes managing questions that are asked during each meeting. With the todo-list, I can make it much easier for the admin to enable/disable and re-order the questions that appear.

But I actually have the todo-list widget used twice on the page--one for the "morning" meetings, and one for the "evening" meetings. Each ul element has its own unique id; each checkbox has its own unique id and name. No two ids or names are the same between the two lists. The problem is that the checkbox handlers are not functioning correctly at all, on either list, when they're both present. The main thing I'm noticing is that the parent li elements are not being given the "done" class as they should when a box is checked.

I found that the problem I'm running into has to do with having data-widget="todo-list" on more than one ul. As soon as I remove the attribute from one of them, the other one will work perfectly.

Was todo-list designed to only ever be used once per page? If so, is there a workaround--maybe to allow for a second, custom data-widget value to be recognized? Or has this issue already been fixed post-version 3.1?

TOMassey avatar Mar 22 '22 21:03 TOMassey

That was never supported, but I take a look into it may I can fix it with the other jQueryInterface bugs.

REJack avatar May 06 '22 19:05 REJack

This sould be fixed with 75deb497b39c1a8547fe0f21a2478b066b223396, please test it if can 😄

REJack avatar Jul 12 '22 10:07 REJack