Warning: Received `false` for a non-boolean attribute `autoCorrect`.
See original GitHub issueDescription
There are some React warnings in a test environment (jsdom with Jest) regarding autoCorrect and autoCapitalize attributes.
Recording

Environment
- Slate Version: 0.62.1-2021326135112
- Operating System: macOS 11.3.1
- TypeScript Version: 4.1.2
Context
After digging a bit, it seems like the warning is thrown because of this line which assigns the boolean false to autoCorrect (whereas it expects a string) in case HAS_BEFORE_INPUT_SUPPORT is false, which is the case in a jsdom environment.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Received `false` for a non-boolean attribute. How do I pass ...
This error with styled-components appears to be due to styled() attempting to apply a boolean ...
Read more >How to Fix ' Received false for non-boolean attribute' Errors
The "Warning: Received false for a non-boolean attribute className." warning happens in React when you try to conditionally set a attribute, ...
Read more >How to fix the 'Received "true" for a non-boolean attribute' error
I'll present an alternative to this solution. The trick is to use the unary plus operator to convert boolean to number.
Read more >React DOM element's attribute should not have a value ...
This rule was introduced in DeepScan 1.7.0-beta. See. DOM Attributes in React 16. React Warning: Received false for non-boolean attribute ...
Read more ><input>: The Input (Form Input) element - HTML
(Not a Boolean attribute!) The autocomplete attribute takes as its value a space-separated string that describes what, if any, type of ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

The same applies to
autoCapitalize, if I understand correctly.jestwill also error on that:It’s just been released as 0.65 (see #4273).