atomiks / tippyjs

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

fix: reset white-space to its initial value #969

Closed GauBen closed 3 years ago

GauBen commented 3 years ago

When a tooltip is added to a <pre> element (or any elements that has white-space: pre), the arrow appears broken.

Example:

image

(white-space: pre was added to the parent <div> to trigger the bug)