{#if states.length > 0} {#each states as state} { e.preventDefault() e.stopPropagation() goToCursor(state) }} > {/each} {/if}