Click events stop working after replacing attribute of element in <svg> (Win7/IE11)

后端 未结 1 1626
刺人心
刺人心 2020-12-20 12:05

We are using multiple svg symbols for displaying icons.


相关标签:
1条回答
  • 2020-12-20 12:46

    Yes, this is a known IE bug. https://connect.microsoft.com/IE/feedback/details/796745/mouse-events-are-not-delivered-at-all-anymore-when-inside-an-svg-a-use-is-removed-from-the-dom

    If you can, you should set pointer-events: none; for the use tag in your CSS. It's crazy, but it should work.

    0 讨论(0)
提交回复
热议问题