bumbeishvili / org-chart

Highly customizable org chart. Integrations available for Angular, React, Vue
https://stackblitz.com/edit/web-platform-o5t1ha
MIT License
928 stars 330 forks source link

onNodeClick Safari - Activates on clicking expand nodes #412

Open PeterTran4 opened 5 months ago

PeterTran4 commented 5 months ago

Describe the bug Whenever we use the onNodeClick event on Safari, the event triggers when clicking the expand other nodes, this is an unexpected behavior on Safari only. We tested on Chrome and seems to be fine as expanding does not trigger onNodeClick.

Safari Version 17.5 (19618.2.12.11.6) MacOS 14.5 (23F79)

bumbeishvili commented 5 months ago

@PeterTran4 workaround would be assigning custom event listeners in node update method

Here is a dropdown example - https://stackblitz.com/edit/js-vhhxqs?file=index.html