A funny bug. The spellcheck property is a boolean, but the spellcheck attribute is either the "true" or "false" string. When attempting to set the spellcheck property to the "false" string, it gets set to true because this string itself is truthy. I think we might need a better global list of which props should be dealt with as properties versus which props should be dealt with as attributes. If you know a library which has a good global list of these props/attributes lemme know.
In the meantime, if you encounter a bug like this you can use spellcheck={false} to set the boolean property directly.
A funny bug. The
spellcheck
property is a boolean, but thespellcheck
attribute is either the"true"
or"false"
string. When attempting to set thespellcheck
property to the"false"
string, it gets set to true because this string itself is truthy. I think we might need a better global list of which props should be dealt with as properties versus which props should be dealt with as attributes. If you know a library which has a good global list of these props/attributes lemme know.In the meantime, if you encounter a bug like this you can use
spellcheck={false}
to set the boolean property directly.