Skip to content

Commit

Permalink
proper naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-rajpal committed Nov 16, 2023
1 parent b5e00ca commit 4bc2c86
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export function AutoComplete({
const [cursor, handleKeyDown, , reset, [optionsAreVisible, hide, show]] =
useCursor(value, memoizedOptions, handleSelect);

const onBlur = useMutableCallback((event) => {
const handleOnBlur = useMutableCallback((event) => {
hide();
onBlurAction(event);
});
Expand Down Expand Up @@ -154,7 +154,7 @@ export function AutoComplete({
onChange={useMutableCallback((e) =>
setFilter(e.currentTarget.value)
)}
onBlur={onBlur}
onBlur={handleOnBlur}
onFocus={show}
onKeyDown={handleKeyDown}
placeholder={
Expand Down

0 comments on commit 4bc2c86

Please sign in to comment.