How can I restrict the click action to the svg shape only and not its entire rectangle?
Thanks
Colm
You could add condition in click event to check if click coordinates are within shape boundaries.
The easiest is use an overlay of some kind, like a label, then use the click event for that component.
I think the OP only wants a response when the green area is clicked.
yes, that is correct. thanks
Victor made a JS injection that will let you know the name of the SVG element that was clicked, might work here.
2 Likes
yes should work for this
1 Like