Skip to content

Commit ab34663

Browse files
committed
only check for initial false/true change
1 parent 3e4b016 commit ab34663

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/AutoSuggestion/AutoSuggestion.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ const AutoSuggestion = ({
252252
// Validate initial value
253253
checkValuePathValidity(initialValue);
254254
}
255-
}, [currentCm.current]);
255+
}, [!!currentCm.current]);
256256

257257
const setCurrentIndex = (newIndex: number) => {
258258
editorState.index = newIndex;

0 commit comments

Comments
 (0)