svelecte
svelecte copied to clipboard
Warning A11y: visible, non-interactive elements with an on:click event must
On build getting below warning:
Module Warning (from ./node_modules/svelte-loader/index.js):
A11y: visible, non-interactive elements with an on:click event must be accompanied by an on:keydown, on:keyup, or on:keypress event. (235:6)
233: {#if inputValue && creatable && !maxReached}
234: <div class="creatable-row-wrap">
235: <div class="creatable-row" on:click={dispatch('select', inputValue)} on:mouseenter={dispatch('hover', listIndex.last)}
^
236: class:active={currentListLength == dropdownIndex}
237: class:is-disabled={alreadyCreated.includes(inputValue)}
How do I remove the warning?