This commit is contained in:
Timothy Jaeryang Baek
2026-08-05 07:12:28 -05:00
parent 9c7ce154e7
commit 29eeda9f9a
6 changed files with 205 additions and 13 deletions
@@ -25,7 +25,7 @@ export function getSuggestionRenderer(Component: any, ComponentProps = {}) {
char: props?.text?.charAt(0),
query: props?.query,
command: (item) => {
props.command({ id: item.id, label: item.label });
props.command(item);
},
...ComponentProps
},
@@ -88,7 +88,7 @@ export function getSuggestionRenderer(Component: any, ComponentProps = {}) {
component.$set({
query: props.query,
command: (item) => {
props.command({ id: item.id, label: item.label });
props.command(item);
}
});