diff --git a/src/lib/components/TechnologyTile.svelte b/src/lib/components/TechnologyTile.svelte index 2a46129..979cd47 100644 --- a/src/lib/components/TechnologyTile.svelte +++ b/src/lib/components/TechnologyTile.svelte @@ -31,46 +31,17 @@ tech.hasOwnProperty('instances') && tech.instances.constructor === Array && tech.instances.length - ) return true; + ) { + return true; + } return false; } - function handleClick() { - console.log('clicked!'); - } - - /*document.addEventListener('keydown', (event) => { - const { activeElement } = document; - const hasButtonRole = activeElement?.getAttribute('role') === 'button'; - - if (hasButtonRole) { - // prevent default behaviour, including scrolling on spacebar - if (['Spacebar', ' ', 'Enter'].includes(event.key)) { - event.preventDefault(); - } - - if (event.key === 'Enter') { - activeElement.click(); - } - } - }); - - document.addEventListener('keyup', (event) => { - const { activeElement } = document; - const hasButtonRole = activeElement?.getAttribute('role') === 'button'; - - if (hasButtonRole && ['Spacebar', ' '].includes(event.key)) { - event.preventDefault(); - activeElement.click(); - } - });*/ - - //onclick="handleClick()" -