Skip to content

Commit

Permalink
elyra-ai#1979 In Safari, error occurs when moving mouse over open edi…
Browse files Browse the repository at this point in the history
…t area (elyra-ai#1980)

Signed-off-by: CTomlyn <tomlyn@us.ibm.com>
  • Loading branch information
tomlyn authored May 23, 2024
1 parent 486bbfa commit 6b0842b
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2296,10 +2296,12 @@ export default class SVGCanvasRenderer {
hideEditIcon(spanObj) {
if (!this.mouseOverLabelEditIcon) {
const labelObj = spanObj.parentElement;
const foreignObj = labelObj.parentElement;
const nodeObj = foreignObj.parentElement;
const nodeGrpSel = d3.select(nodeObj);
nodeGrpSel.selectAll(".d3-label-edit-icon-group").remove();
if (labelObj) {
const foreignObj = labelObj.parentElement;
const nodeObj = foreignObj.parentElement;
const nodeGrpSel = d3.select(nodeObj);
nodeGrpSel.selectAll(".d3-label-edit-icon-group").remove();
}
}
}

Expand Down

0 comments on commit 6b0842b

Please sign in to comment.