atomiks / tippyjs

Tooltip, popover, dropdown, and menu library
https://atomiks.github.io/tippyjs/
MIT License
11.97k stars 520 forks source link

Uncaught TypeError: Cannot read properties of null (reading 'body') #1137

Closed xgqfrms closed 1 year ago

xgqfrms commented 1 year ago

Bug description

when using it in the SVG text element, the error occurred.

core@2:5 Uncaught TypeError: Cannot read properties of null (reading 'body')
    at x (core@2:5:2648)
    at x (core@2:5:2666)
    at x (core@2:5:2666)
    at w (core@2:5:2721)
    at Object.setOptions (core@2:5:8157)
    at Object.createPopper (core@2:5:9716)
    at Ct (tippy.js@6:1:14282)
    at tippy.js@6:1:7497
    at Object.show (tippy.js@6:1:7502)
    at Lt (tippy.js@6:1:14685)

image

Reproduction

CodePen link: https://codepen.io/xgqfrms/pen/OJrNzea

PS: You must download and run the SVG file in your local static web server to fix the CORS limit problem.