Skip to content

Commit cac4951

Browse files
committed
Treat focusable as enumerated boolean attribute
1 parent 3b3b7fc commit cac4951

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/react-dom/src/shared/DOMProperty.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,12 @@ const properties = {};
260260
// In React, we let users pass `true` and `false` even though technically
261261
// these aren't boolean attributes (they are coerced to strings).
262262
// Since these are SVG attributes, their attribute names are case-sensitive.
263-
['autoReverse', 'externalResourcesRequired', 'preserveAlpha'].forEach(name => {
263+
[
264+
'autoReverse',
265+
'externalResourcesRequired',
266+
'focusable',
267+
'preserveAlpha',
268+
].forEach(name => {
264269
properties[name] = new PropertyInfoRecord(
265270
name,
266271
BOOLEANISH_STRING,

0 commit comments

Comments
 (0)