Commit 379c870
committed
fix(react): allow Toggle to disable focus via data-is-focusable attribute
The Toggle component now respects the data-is-focusable attribute,
allowing users to disable focus behavior similar to the Checkbox component.
This is particularly useful in DetailsList scenarios where arrow key
navigation should skip certain interactive elements.
Previously, data-is-focusable was hardcoded to true, preventing users
from disabling focus. Now it checks toggleNativeProps for the attribute
and defaults to true if not provided, maintaining backward compatibility.1 parent d33ac4d commit 379c870
2 files changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
90 | 102 | | |
91 | 103 | | |
92 | 104 | | |
| |||
0 commit comments