UNPKG

showcar-ui

Version:

Showcar-ui is the pattern library that is used to build the frontend of AutoScout24. It provides CSS classes, custom elements and components.

8 lines (7 loc) 298 B
export default () => { document.addEventListener('click', (e) => { if(e.target && e.target.matches && e.target.matches('[data-toggle="arrow"]')) { e.target.classList.contains('open') ? e.target.classList.remove('open') : e.target.classList.add('open'); } }); };