Open laravel-blog opened 9 years ago
AFAICT that should work. If you can post a JSBin showing the problem I'm sure I can work out what's going wrong.
hi, how can I get all leaf item which is checked when the check state is change
var list = $('#my-list');
list.on('change', 'input', function() {
var checked = list.find('input:checked');
});
AFAICT that should work. If you can post a JSBin showing the problem I'm sure I can work out what's going wrong.
here is demo of BUG (some parent checkbox is checked): https://lesavita.com/test.html proof: http://joxi.ru/Vm6XvXjijEwWzA.png
That's not what I see when I perform that test on Chrome.
That's not what I see when I perform that test on Chrome.
safari: http://joxi.ru/E2pwVw7Fa1OxPm.png mozzila: http://joxi.ru/D2PZ4ZNCkxj6Dr.png opera: http://joxi.ru/EA4O9O0uO9PKx2.png What proof do you need to understand the problem? at the first boot (document.load) all checkboxes are correctly entered, but after initialization jquery-bonsai they are displayed incorrectly
I see what's happening. A parent is only checked if all of its children are checked. For example, par-45
becomes unchecked because none of its children are checked.
Sorry, you're right about the child branch.
Hy,
I've the following tree in my html5 file:
You can see the checkboxes with value: 6ae0e08870c828c521d570a829f47244 and 592641f715f4122453e3c7f8ee39e9ea are checked. But after your plugin is ready, the checkbox isnt checked in the browser.
bonsai will initialized with this:
Any ideas, why the checkboxes are unchecked after your plugin is running?
kind regards