Commit fdc213a
authored
PERF: Use fixed-height textarea in note form (#36650)
The ExpandingTextArea component uses the autosize library, which
triggers expensive DOM measurements (scrollHeight calculations) on every
keystroke. This causes layout thrashing, especially problematic in the
review queue, where multiple textareas may be rendered.
<img width="801" height="851" alt="Screenshot 2025-12-12 at 12 40 36 pm"
src="https://github.com/user-attachments/assets/26d00693-e637-4c4a-8cde-6f91596139f5"
/>1 parent 7955a47 commit fdc213a
File tree
1 file changed
+6
-12
lines changed- frontend/discourse/app/components/reviewable-refresh
1 file changed
+6
-12
lines changedLines changed: 6 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
115 | 109 | | |
116 | 110 | | |
117 | 111 | | |
| |||
0 commit comments