(dropdown, activeIndex)
| 391 | } |
| 392 | |
| 393 | function updateActiveDropdownItem(dropdown, activeIndex) { |
| 394 | dropdown.querySelectorAll('.dropdown-item').forEach((item, itemIndex) => { |
| 395 | item.classList.toggle('active', itemIndex === activeIndex); |
| 396 | if (itemIndex === activeIndex) { |
| 397 | item.scrollIntoView({ block: 'nearest' }); |
| 398 | } |
| 399 | }); |
| 400 | } |
| 401 | |
| 402 | export function toggleFilterContainer() { |
| 403 | const isHidden = elements.messageFilterContainer.style.display === 'none'; |
no outgoing calls
no test coverage detected