{isOpen === value.__id &&
(!contextIsDragging ||
(contextIsDragging &&
contextIsDragging !== isOpen)) && (
{
onChange(
items.map((l) =>
l.__id === value.__id
? {
...l,
[key]: newValue,
}
: l
)
)
}}
value={getValueFromInput(
option['inner-options'],
{
...(option.value.filter(
({ id }) => id === value.id
).length > 1
? option.value.filter(
({ id }) =>
value.id === id
)[
items
.filter(
({ id }) =>
id ===
value.id
)
.map(
({ __id }) =>
__id
)
.indexOf(value.__id)
]
: {}),
...value,
}
)}
options={option['inner-options']}
/>
)}
)}