QSelectbox key 중복 제거
This commit is contained in:
parent
57446fa6d8
commit
84e8af50b8
@ -87,7 +87,7 @@ export default function QSelectBox({
|
||||
<ul className="select-item-wrap">
|
||||
{options?.length > 0 &&
|
||||
options?.map((option, index) => (
|
||||
<li key={option.id || index} className="select-item" onClick={() => handleClickSelectOption(option)}>
|
||||
<li key={option.id + '_' + index} className="select-item" onClick={() => handleClickSelectOption(option)}>
|
||||
<button key={option.id + 'btn'}>{showKey !== '' ? option[showKey] : option.name}</button>
|
||||
</li>
|
||||
))}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user