SVG Icons: Clicking on path prevents click #4662
Labels
Resolution: Workaround
Issue or pull request contains a workaround. It needs to be reviewed further by Core Team
Type: Bug
Issue contains a defect related to a specific component.
Milestone
Describe the bug
Clicking on a SVG version of the icon doesn't always trigger a
click
event if you click on any paintedpath
of the SVG.Workaround:
Reproducer
https://stackblitz.com/edit/react-gu3eb7
PrimeReact version
9.6.0
React version
18.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
Clicking on the SVG icon should pass the click event through to the element below it.
See: https://stackoverflow.com/questions/22483643/svg-still-receives-clicks-even-if-pointer-events-visible-painted/
See: https://stackoverflow.com/questions/28282811/how-can-i-pass-only-clicks-through-a-svg-with-pointer-events
The text was updated successfully, but these errors were encountered: