mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
switch ordering of logical and (#11462)
This commit is contained in:
+2
-2
@@ -183,9 +183,9 @@ export function shouldSetAttribute(name, value) {
|
||||
return false;
|
||||
}
|
||||
if (
|
||||
name.length > 2 &&
|
||||
(name[0] === 'o' || name[0] === 'O') &&
|
||||
(name[1] === 'n' || name[1] === 'N') &&
|
||||
name.length > 2
|
||||
(name[1] === 'n' || name[1] === 'N')
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user