mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
7 lines
304 B
JavaScript
7 lines
304 B
JavaScript
|
const selectionMode = document.querySelector('#selection-mode');
|
||
|
const tree = document.querySelector('.tree-selectable');
|
||
|
|
||
|
selectionMode.addEventListener('sl-change', () => {
|
||
|
tree.querySelectorAll('sl-tree-item').forEach(item => (item.selected = false));
|
||
|
tree.selection = selectionMode.value;
|
||
|
});
|