Skip to content

Commit 6089a55

Browse files
authored
fix(ui): chat input triggers correctly re-trigger on backspace (open-webui#22899)
1 parent c81b3ef commit 6089a55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/components/common/RichTextInput/suggestions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function getSuggestionRenderer(Component: any, ComponentProps = {}) {
2222
component: Component,
2323
target: container,
2424
props: {
25-
char: props?.text,
25+
char: props?.text?.charAt(0),
2626
query: props?.query,
2727
command: (item) => {
2828
props.command({ id: item.id, label: item.label });

0 commit comments

Comments
 (0)