Skip to content

Commit c27c954

Browse files
committed
docs(readme): adds warning regarding foreignObject in Safari (#284)
1 parent 5c7d67f commit c27c954

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,8 @@ For examples of each data type that can be parsed with `treeUtil`, please check
340340
## Using foreignObjects
341341
> ⚠️ Requires `allowForeignObjects` prop to be set due to limited browser support: [IE does not currently support `foreignObject` elements](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject#Browser_compatibility).
342342
343+
> ⚠️ There is a [known bug in Safari](https://github.com/bkrem/react-d3-tree/issues/284) relating to the positioning of `foreignObject` elements. Please take this into account before opting in via `allowForeignObjects`.
344+
343345
The SVG spec's `foreignObject` element allows foreign XML content to be rendered into the SVG namespace, unlocking the ability to use regular React components for elements of the tree graph.
344346

345347
### `nodeLabelComponent`

0 commit comments

Comments
 (0)