Repository navigation
Commit b52c93f
committed
fix: use el.localName for case-insensitive textarea check in deopt paths
The deopt client paths compared the raw descriptor type (d.type / value.type)
to the lowercase literal 'textarea', while the server normalizes via
tag.toLowerCase(). createElement('TEXTAREA') therefore took the wrong client
path (childSlot / reconcileDeoptChildren instead of the textarea text fold),
causing a hydration mismatch.
Use el.localName (which the DOM always lowercases) instead, matching the
pattern already used in the spread path and throughout the runtime.1 parent 24a56e5 commit b52c93f
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32083 | 32083 | | |
32084 | 32084 | | |
32085 | 32085 | | |
32086 | | - | |
| 32086 | + | |
32087 | 32087 | | |
32088 | 32088 | | |
32089 | 32089 | | |
| |||
32664 | 32664 | | |
32665 | 32665 | | |
32666 | 32666 | | |
32667 | | - | |
| 32667 | + | |
32668 | 32668 | | |
32669 | 32669 | | |
32670 | 32670 | | |
| |||
0 commit comments