Skip to content

Commit

Permalink
popover: use span for mount node to avoid invalid HTML errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chaance committed Feb 21, 2020
1 parent dcf18cd commit 3c2f93c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/portal/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const Portal: React.FC<PortalProps> = ({ children, type = "reach-portal" }) => {
return portalNode.current ? (
createPortal(children, portalNode.current)
) : (
<div ref={mountNode} />
<span ref={mountNode} />
);
};

Expand Down

0 comments on commit 3c2f93c

Please sign in to comment.