Skip to content

Commit 1c27ee5

Browse files
committed
override default selectability
1 parent 687d616 commit 1c27ee5

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
@@ -92,6 +92,12 @@ const modelPreviewContainerStyles = css({
9292

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

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

0 commit comments

Comments
 (0)