Describe the bug
When using hydrate with <textarea defaultValue='x' />, the value is cleared instead of retained.
To Reproduce
<!doctype html>
<html>
<head>
<script type='module'>
import { h, hydrate } from 'https://esm.sh/preact'
function Test() {
return h('textarea', { defaultValue: 'x' })
}
hydrate(h(Test), document.body)
</script>
</head>
<body><textarea>x</textarea></body>
</html>
Expected behavior
The textarea should retain the value (x), but it's cleared when the page loads.
Reproduced in latest Chrome, Firefox, and Safari on macOS and Safari on latest iOS.
Describe the bug
When using
hydratewith<textarea defaultValue='x' />, the value is cleared instead of retained.To Reproduce
Expected behavior
The textarea should retain the value (
x), but it's cleared when the page loads.Reproduced in latest Chrome, Firefox, and Safari on macOS and Safari on latest iOS.