MCPcopy Create free account
hub / github.com/bywwcnll/StreamPanel / updateActiveDropdownItem

Function updateActiveDropdownItem

devtools/modules/filterManager.js:393–400  ·  view source on GitHub ↗
(dropdown, activeIndex)

Source from the content-addressed store, hash-verified

391}
392
393function 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
402export function toggleFilterContainer() {
403 const isHidden = elements.messageFilterContainer.style.display === 'none';

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected