Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Added component stack to contentEditable warning
  • Loading branch information
Ethan-Arrowood committed Oct 12, 2017
commit 75a2533db9f5c2dbfc864c3f68fbf528e99e65af
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ describe('ReactDOMComponent', () => {
'Warning: A component is `contentEditable` and contains `children` ' +
'managed by React. It is now your responsibility to guarantee that ' +
'none of those nodes are unexpectedly modified or duplicated. This ' +
'is probably not intentional.\n in div (at **)'
'is probably not intentional.\n in div (at **)',
);
});

Expand Down
10 changes: 5 additions & 5 deletions src/renderers/dom/shared/utils/assertValidProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ function assertValidProps(
props.suppressContentEditableWarning ||
!props.contentEditable ||
props.children == null,
'A component is `contentEditable` and contains `children` managed by ' +
'React. It is now your responsibility to guarantee that none of ' +
'those nodes are unexpectedly modified or duplicated. This is ' +
'probably not intentional.%s',
getCurrentFiberStackAddendum() || '',
'A component is `contentEditable` and contains `children` managed by ' +
'React. It is now your responsibility to guarantee that none of ' +
'those nodes are unexpectedly modified or duplicated. This is ' +
'probably not intentional.%s',
getCurrentFiberStackAddendum() || '',
);
}
invariant(
Expand Down