Skip to content

Commit

Permalink
fix: add closing tag for iframe (#127)
Browse files Browse the repository at this point in the history
* fix: add closing tag for iframe

* chore: adjust test and add changeset
  • Loading branch information
jpedroschmitz authored Jun 4, 2024
1 parent 617ec60 commit c8a5a7c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/beige-otters-sparkle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcms/rich-text-html-renderer': patch
---

fix: add closing tag for iframe
2 changes: 1 addition & 1 deletion packages/html-renderer/src/elements/IFrame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function IFrame({ url }: Partial<IFrameProps>) {
allow="fullscreen"
frameBorder="0"
referrerPolicy="no-referrer"
/>
></iframe>
</div>
`;
}
2 changes: 1 addition & 1 deletion packages/html-renderer/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ describe('@graphcms/rich-text-html-renderer', () => {
allow="fullscreen"
frameBorder="0"
referrerPolicy="no-referrer"
/>
></iframe>
</div>
`);
});
Expand Down

0 comments on commit c8a5a7c

Please sign in to comment.