Skip to content

Commit ffd256f

Browse files
committed
Fixed unexpected behaviour where choosing a command doesn't reset selectedHighlightedCmd
1 parent 6620cf7 commit ffd256f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/example/node_modules/
33
/node_modules/
44
/dist/
5+
/example/build/

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ const CommandLineModal = ({
9393
function reset() {
9494
setInputValue('');
9595
setPossibleCommands(commandsInternal);
96+
setHighlightedCmdName(Object.keys(commandsInternal)[0]);
9697
}
9798

9899
function handleCommandSelected() {

0 commit comments

Comments
 (0)