File tree Expand file tree Collapse file tree
packages/ui/src/features/loops/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export function LoopBuilderComposer({
2626
2727 const chips =
2828 quickStarts ??
29- DEFAULT_EXAMPLES . map ( ( prompt ) => ( { label : prompt , prompt } ) ) ;
29+ DEFAULT_EXAMPLES . map ( ( example ) => ( { label : example , prompt : example } ) ) ;
3030
3131 const start = ( ) => {
3232 const text = prompt . trim ( ) ;
@@ -62,7 +62,11 @@ export function LoopBuilderComposer({
6262 className = "w-full resize-none bg-transparent text-[13px] text-gray-12 leading-relaxed outline-none placeholder:text-gray-9 disabled:opacity-60"
6363 onChange = { ( e ) => setPrompt ( e . target . value ) }
6464 onKeyDown = { ( e ) => {
65- if ( e . key === "Enter" && ! e . shiftKey ) {
65+ if (
66+ e . key === "Enter" &&
67+ ! e . shiftKey &&
68+ ! e . nativeEvent . isComposing
69+ ) {
6670 e . preventDefault ( ) ;
6771 start ( ) ;
6872 }
You can’t perform that action at this time.
0 commit comments