Merge pull request #1665 from yanCode/fix/prompt-select

fix: bug #1662
This commit is contained in:
Yifei Zhang 2023-05-21 12:55:47 +08:00 committed by GitHub
commit ce75dc502b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ export function PromptHints(props: {
return () => window.removeEventListener("keydown", onKeyDown);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [noPrompts, selectIndex]);
}, [props.prompts.length, selectIndex]);
if (noPrompts) return null;
return (