fix(runtime-dom): always treat autocorrect as attribute (#13001)

close #5705
This commit is contained in:
Ecco 2025-03-31 02:31:11 -04:00 committed by GitHub
parent 733e266cdd
commit 1499135c22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -102,7 +102,12 @@ function shouldSetAsProp(
// them as attributes.
// Note that `contentEditable` doesn't have this problem: its DOM
// property is also enumerated string values.
if (key === 'spellcheck' || key === 'draggable' || key === 'translate') {
if (
key === 'spellcheck' ||
key === 'draggable' ||
key === 'translate' ||
key === 'autocorrect'
) {
return false
}