mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 10:55:37 +00:00
fix: remove overflow hidden to allow react-select menu to break out of accordion
This commit is contained in:
parent
223d1195e5
commit
c5ec5bdb65
@ -325,35 +325,37 @@ const RelationInput = ({
|
||||
)
|
||||
}
|
||||
>
|
||||
<RelationList overflow={overflow}>
|
||||
<VisuallyHidden id={ariaDescriptionId}>{listAriaDescription}</VisuallyHidden>
|
||||
<VisuallyHidden aria-live="assertive">{liveText}</VisuallyHidden>
|
||||
<List
|
||||
height={dynamicListHeight}
|
||||
ref={listRef}
|
||||
outerRef={outerListRef}
|
||||
itemCount={totalNumberOfRelations}
|
||||
itemSize={RELATION_ITEM_HEIGHT + RELATION_GUTTER}
|
||||
itemData={{
|
||||
ariaDescribedBy: ariaDescriptionId,
|
||||
canDrag: canReorder,
|
||||
disabled,
|
||||
handleCancel: onCancel,
|
||||
handleDropItem: onDropItem,
|
||||
handleGrabItem: onGrabItem,
|
||||
iconButtonAriaLabel,
|
||||
labelDisconnectRelation,
|
||||
onRelationDisconnect,
|
||||
publicationStateTranslations,
|
||||
relations,
|
||||
updatePositionOfRelation: handleUpdatePositionOfRelation,
|
||||
}}
|
||||
itemKey={(index, { relations: relationsItems }) => relationsItems[index].id}
|
||||
innerElementType="ol"
|
||||
>
|
||||
{ListItem}
|
||||
</List>
|
||||
</RelationList>
|
||||
{relations.length > 0 ? (
|
||||
<RelationList overflow={overflow}>
|
||||
<VisuallyHidden id={ariaDescriptionId}>{listAriaDescription}</VisuallyHidden>
|
||||
<VisuallyHidden aria-live="assertive">{liveText}</VisuallyHidden>
|
||||
<List
|
||||
height={dynamicListHeight}
|
||||
ref={listRef}
|
||||
outerRef={outerListRef}
|
||||
itemCount={totalNumberOfRelations}
|
||||
itemSize={RELATION_ITEM_HEIGHT + RELATION_GUTTER}
|
||||
itemData={{
|
||||
ariaDescribedBy: ariaDescriptionId,
|
||||
canDrag: canReorder,
|
||||
disabled,
|
||||
handleCancel: onCancel,
|
||||
handleDropItem: onDropItem,
|
||||
handleGrabItem: onGrabItem,
|
||||
iconButtonAriaLabel,
|
||||
labelDisconnectRelation,
|
||||
onRelationDisconnect,
|
||||
publicationStateTranslations,
|
||||
relations,
|
||||
updatePositionOfRelation: handleUpdatePositionOfRelation,
|
||||
}}
|
||||
itemKey={(index, { relations: relationsItems }) => relationsItems[index].id}
|
||||
innerElementType="ol"
|
||||
>
|
||||
{ListItem}
|
||||
</List>
|
||||
</RelationList>
|
||||
) : null}
|
||||
{(description || error) && (
|
||||
<Box paddingTop={2}>
|
||||
<FieldHint />
|
||||
|
||||
@ -14,7 +14,6 @@ export const Footer = styled(Box)`
|
||||
|
||||
export const Content = styled(Box)`
|
||||
border-bottom: none;
|
||||
overflow: hidden;
|
||||
|
||||
/* add the borders and make sure the top is transparent to avoid jumping with the hover effect */
|
||||
& > div > div {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user