Skip to content

Commit e22a093

Browse files
authored
Merge pull request #342 from eccenca/fix/mappingCreatorUndoRedo-CMEM-6850
Always add class 'nodrag' to SuggestField's popover content element
2 parents 786046c + a6a3479 commit e22a093

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ This is a major release, and it might be not compatible with your current usage
9494
- beside explicitly specified properties it allows only basic HTML element properties and testing IDs
9595
- overrite the native SCSS `rgba()` function, so it now works for SCSS color values and CSS custom properties
9696
- `getColorConfiguration()` works with CSS custom properties
97+
- `<SuggestField />`
98+
- Always add class 'nodrag' to popover content element to always prevent dragging of react-flow and dnd-kit elements when interacting with the component.
9799

98100
### Deprecated
99101

src/components/AutocompleteField/AutoCompleteField.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ export function SuggestField<T, UPDATE_VALUE>(props: SuggestFieldProps<T, UPDATE
494494
query={query}
495495
// This leads to odd compile errors without "as any"
496496
popoverProps={updatedContextOverlayProps as any}
497+
popoverContentProps={{className: "nodrag"}}
497498
selectedItem={selectedItem}
498499
fill={fill}
499500
{...createNewItemProps}

0 commit comments

Comments
 (0)