Skip to content

Commit 6625d40

Browse files
committed
docs(readme): adds warning regarding foreignObject in Safari (#284)
1 parent 9336178 commit 6625d40

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@ For examples of each data type that can be parsed with `treeUtil`, please check
338338
## Using foreignObjects
339339
> ⚠️ 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).
340340
341+
> ⚠️ 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`.
342+
341343
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.
342344

343345
### `nodeLabelComponent`

0 commit comments

Comments
 (0)