dillon1000/react

Commit

Add \n after <textarea> to fix missing linebreaks

Same for <pre> and <listing>. Browsers are crazy.

Test Plan: jest, verify in Chrome that starting textareas with a value starting with two newlines renders both newlines instead of one newline, as it did before.
Browse files
Changed paths2 files
First-parent comparison
M src/browser/ui/ReactDOMComponent.js ModifiedM src/browser/ui/dom/components/__tests__/ReactDOMTextarea-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…