Fix canvas connection point z-indexing bug (#107223)
fix(canvas): hoist connect points one level higher in DOM to fix z-index
This commit is contained in:
@@ -54,6 +54,7 @@ export class RootElement extends FrameState {
|
||||
{this.elements.map((v) => (
|
||||
<Fragment key={v.UID}>{v.render()}</Fragment>
|
||||
))}
|
||||
{this.scene.connections.render()}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -366,7 +366,6 @@ export class Scene {
|
||||
|
||||
const sceneDiv = (
|
||||
<>
|
||||
{this.connections.render()}
|
||||
{this.root.render()}
|
||||
{this.isEditingEnabled && (
|
||||
<Portal>
|
||||
|
||||
@@ -137,7 +137,6 @@ const getStyles = (theme: GrafanaTheme2) => ({
|
||||
cursor: 'cursor',
|
||||
width: `calc(5px + 2 * ${ANCHOR_PADDING}px)`,
|
||||
height: `calc(5px + 2 * ${ANCHOR_PADDING}px)`,
|
||||
zIndex: 100,
|
||||
}),
|
||||
highlightElement: css({
|
||||
backgroundColor: '#00ff00',
|
||||
|
||||
Reference in New Issue
Block a user