Skip to content

Commit

Permalink
feat: add data attribute on ReactNodeViewContent div (#5539)
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamIPark committed Aug 23, 2024
1 parent 88e310b commit fafb5ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react/src/ReactNodeViewRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export class ReactNodeView<
}

if (this.contentDOMElement) {
this.contentDOMElement.dataset.nodeViewContentReact = ''
// For some reason the whiteSpace prop is not inherited properly in Chrome and Safari
// With this fix it seems to work fine
// See: https://github.com/ueberdosis/tiptap/issues/1197
Expand Down

0 comments on commit fafb5ad

Please sign in to comment.