Skip to content

Commit

Permalink
bug-fix: set cursor pointer on connector-out
Browse files Browse the repository at this point in the history
  • Loading branch information
dariodepa75 committed Jan 15, 2025
1 parent 684fddc commit 8fe912b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="action-connector"
(mouseenter)="showConnectorsIn()"
(mouseleave)="hideConnectorsIn()">
(mouseenter)="showConnectorsIn($event)"
(mouseleave)="hideConnectorsIn($event)">
<span class="label-connector">{{labelNumber}}</span></div>
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.action-connector {
cursor: pointer;
pointer-events: auto;
z-index: 2;
display: flex;
-webkit-box-align: center;
align-items: center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export class CdsConnectorInComponent implements OnInit {
}
}

public showConnectorsIn(){
public showConnectorsIn(event: MouseEvent){
event.stopPropagation();
if(this.connectorsIn){
this.connectorsIn.forEach((connector) => {
const svgElement = document.getElementById(connector.id) as HTMLElement;
Expand All @@ -38,7 +39,8 @@ export class CdsConnectorInComponent implements OnInit {
}
}

public hideConnectorsIn(){
public hideConnectorsIn(event: MouseEvent){
event.stopPropagation();
if(this.connectorsIn){
this.connectorsIn.forEach((connector) => {
const svgElement = document.getElementById(connector.id) as HTMLElement;
Expand Down

0 comments on commit 8fe912b

Please sign in to comment.