fix: don't use two refs

This commit is contained in:
Eric Lewis 2024-03-29 14:41:08 -04:00 committed by Nabarun
parent c2158510d9
commit cd2dce2404

View File

@ -107,7 +107,6 @@ export const UserSelect = ({ options, value }: UserSelectProps) => {
ref: inputWrapperRef, ref: inputWrapperRef,
suppressRefError: true, suppressRefError: true,
})} })}
ref={inputWrapperRef}
onClick={() => !dropdownOpen && openMenu()} onClick={() => !dropdownOpen && openMenu()}
className="cursor-pointer relative py-2 pl-2 pr-4 flex min-w-[200px] w-full items-center justify-between rounded-xl bg-surface-card shadow-sm" className="cursor-pointer relative py-2 pl-2 pr-4 flex min-w-[200px] w-full items-center justify-between rounded-xl bg-surface-card shadow-sm"
> >