Skip to content

Commit

Permalink
feat: 🎸 auto position combined link actions dropdown
Browse files Browse the repository at this point in the history
The new combined reference link action's dropdown will be positioned
automatically, if necessary, above the trigger button. This should
prevent the menu from being cut off when e.g. positioned at the end of a
page.
  • Loading branch information
DanweDE committed Oct 22, 2020
1 parent 1b76ae0 commit fee2327
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ function CombinedEntryLinkActions(props: LinkActionsProps) {
contentTypes={props.contentTypes}
hasPlusIcon={true}
useExperimentalStyles={true}
dropdownSettings={{
isAutoalignmentEnabled: true,
}}
onSelect={(contentTypeId) => {
return contentTypeId ? props.onCreate(contentTypeId) : Promise.resolve();
}}
Expand Down

0 comments on commit fee2327

Please sign in to comment.