Skip to content

Commit

Permalink
[refactoring] MultiSelect: Remove unnecessary wrapper ref (#3006)
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadHH committed Nov 19, 2022
1 parent 877d469 commit a7bca4a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/mantine-core/src/MultiSelect/MultiSelect.tsx
Expand Up @@ -223,7 +223,6 @@ export const MultiSelect = forwardRef<HTMLInputElement, MultiSelectProps>((props
);
const { systemStyles, rest } = extractSystemStyles(others);
const inputRef = useRef<HTMLInputElement>();
const wrapperRef = useRef<HTMLDivElement>();
const itemsRefs = useRef<Record<string, HTMLDivElement>>({});
const uuid = useId(id);
const [dropdownOpened, setDropdownOpened] = useState(initiallyOpened);
Expand Down Expand Up @@ -624,7 +623,6 @@ export const MultiSelect = forwardRef<HTMLInputElement, MultiSelectProps>((props
aria-expanded={dropdownOpened}
onMouseLeave={() => setHovered(-1)}
tabIndex={-1}
ref={wrapperRef}
>
<input
type="hidden"
Expand Down

0 comments on commit a7bca4a

Please sign in to comment.