fix(dnd): add isExtra prop to Option (#15080)

This commit is contained in:
Ville Brofeldt
2021-06-10 12:13:20 +03:00
committed by GitHub
parent 834bb9409d
commit 65714cc201
5 changed files with 37 additions and 2 deletions

View File

@@ -43,6 +43,7 @@ export default function OptionWrapper(
onShiftOptions,
clickClose,
withCaret,
isExtra,
children,
...rest
} = props;
@@ -107,7 +108,12 @@ export default function OptionWrapper(
return (
<DragContainer ref={ref} {...rest}>
<Option index={index} clickClose={clickClose} withCaret={withCaret}>
<Option
index={index}
clickClose={clickClose}
withCaret={withCaret}
isExtra={isExtra}
>
{children}
</Option>
</DragContainer>