Skip to content

Commit 4c32197

Browse files
committed
override default selectability
1 parent c05da8a commit 4c32197

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/compass-data-modeling/src/components/diagram-editor.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ const modelPreviewContainerStyles = css({
9393

9494
const modelPreviewStyles = css({
9595
minHeight: 0,
96+
97+
/** reactflow handles this normally, but there is a `* { userSelect: 'text' }` in this project,
98+
* which overrides inherited userSelect */
99+
['.connectablestart']: {
100+
userSelect: 'none',
101+
},
96102
});
97103

98104
type SelectedItems = NonNullable<DiagramState>['selectedItems'];

0 commit comments

Comments
 (0)