Open zecka opened 3 months ago
I'm not sure to understand how to us asChild props on Command.Input
I try it like that
<Command> <Command.Input asChild> <input type="text" /> </Command.Input> <Command.List> <Command.Item>Apple</Command.Item> <Command.Item>Orange</Command.Item> <Command.Item>Fish</Command.Item> </Command.List> </Command>
But got following error
input is a void element tag and must neither have children nor use dangerouslySetInnerHTML.
children
dangerouslySetInnerHTML
related to this PR: https://github.com/pacocoursey/cmdk/pull/138
I'm not sure to understand how to us asChild props on Command.Input
I try it like that
But got following error
input is a void element tag and must neither have
children
nor usedangerouslySetInnerHTML
.related to this PR: https://github.com/pacocoursey/cmdk/pull/138