From 4bc2c864c755c41b1040d25416faf33a0a4a7fcf Mon Sep 17 00:00:00 2001 From: yash-rajpal Date: Thu, 16 Nov 2023 23:01:16 +0530 Subject: [PATCH] proper naming convention --- .../fuselage/src/components/AutoComplete/AutoComplete.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/fuselage/src/components/AutoComplete/AutoComplete.tsx b/packages/fuselage/src/components/AutoComplete/AutoComplete.tsx index 7409fa82a2..a40dd6471e 100644 --- a/packages/fuselage/src/components/AutoComplete/AutoComplete.tsx +++ b/packages/fuselage/src/components/AutoComplete/AutoComplete.tsx @@ -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); }); @@ -154,7 +154,7 @@ export function AutoComplete({ onChange={useMutableCallback((e) => setFilter(e.currentTarget.value) )} - onBlur={onBlur} + onBlur={handleOnBlur} onFocus={show} onKeyDown={handleKeyDown} placeholder={