huntabyte / cmdk-sv

cmdk, but for Svelte ✨
https://cmdk-sv.com
MIT License
410 stars 17 forks source link

input event handlers like on:input and on:change not working for Command.Input #81

Closed vr7bd closed 2 weeks ago

vr7bd commented 2 weeks ago

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

vr7bd commented 2 weeks ago

The props were not being exposed when installed with shadcn and has to be manually done