Skip to content

Commit

Permalink
Merge pull request #145 from bsideproject/moon
Browse files Browse the repository at this point in the history
[fix] Select Component  NextJS 버그 수정
  • Loading branch information
KinDDoGGang authored Sep 15, 2023
2 parents e53cb46 + 078b4c4 commit 621bfaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/Select/Select.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { useId } from 'react';
import { UseFormRegisterReturn } from 'react-hook-form';
import ReactSelect, { ActionMeta, GroupBase, OnChangeValue, StylesConfig } from 'react-select';

Expand Down Expand Up @@ -71,6 +71,7 @@ function Select({ placeholder, register, options, size, disabled, onChange }: Se

return (
<ReactSelect
instanceId={useId()}
{...register}
onChange={handleSelectChange}
placeholder={placeholder}
Expand Down

0 comments on commit 621bfaf

Please sign in to comment.