Fix click outside for RecordDetailRelationSection (#11072)
Fixes https://github.com/twentyhq/twenty/issues/11061
This commit is contained in:
@ -262,6 +262,7 @@ export const RecordDetailRelationSection = ({
|
||||
accent="tertiary"
|
||||
/>
|
||||
}
|
||||
dropdownHotkeyScope={{ scope: dropdownId }}
|
||||
dropdownComponents={
|
||||
isToOneObject ? (
|
||||
<SingleRecordPicker
|
||||
@ -271,6 +272,7 @@ export const RecordDetailRelationSection = ({
|
||||
objectNameSingular={relationObjectMetadataNameSingular}
|
||||
recordPickerInstanceId={dropdownId}
|
||||
onCreate={createNewRecordAndOpenRightDrawer}
|
||||
onCancel={closeDropdown}
|
||||
layoutDirection={
|
||||
dropdownPlacement?.includes('end')
|
||||
? 'search-bar-on-bottom'
|
||||
@ -295,7 +297,6 @@ export const RecordDetailRelationSection = ({
|
||||
/>
|
||||
)
|
||||
}
|
||||
dropdownHotkeyScope={{ scope: dropdownId }}
|
||||
/>
|
||||
</DropdownScope>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user