I'm trying to have a select all option which selects all the filtered entries. I have an array which maintains a list of selected options. I would like to reset this array once the user types in something. So I was hoping to do something like
<Command.Input on:change={() => {selectedItems = []}}
Nothing seems to be happening as I think they're not being exposed
I'm trying to have a select all option which selects all the filtered entries. I have an array which maintains a list of selected options. I would like to reset this array once the user types in something. So I was hoping to do something like
<Command.Input on:change={() => {selectedItems = []}}
Nothing seems to be happening as I think they're not being exposed