fix: #182 prompt cannot be selected

This commit is contained in:
Yifei Zhang 2023-03-30 17:08:50 +00:00
parent 802ea20ec4
commit b3fdf3efec

View File

@ -489,7 +489,7 @@ export function Chat(props: {
onFocus={() => setAutoScroll(true)} onFocus={() => setAutoScroll(true)}
onBlur={() => { onBlur={() => {
setAutoScroll(false); setAutoScroll(false);
setTimeout(() => setPromptHints([]), 100); setTimeout(() => setPromptHints([]), 500);
}} }}
autoFocus={!props?.sideBarShowing} autoFocus={!props?.sideBarShowing}
/> />