Commit 3a62131
fix(ResponsiveAction): resolve warning about accessing reserved 'key' prop (#892)
Fixes #890
The ResponsiveAction component was incorrectly defining 'key' as a prop
in its interface, which caused React to warn when developers used the
standard key prop pattern with arrays of ResponsiveAction components.
Changes:
- Removed 'key' from ResponsiveActionProps interface since 'key' is a
reserved React prop that cannot be accessed within components
- Updated ResponsiveActions to use child.key instead of child.props.key
to access React's internal key value without triggering warnings
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 41914e7 commit 3a62131
File tree
2 files changed
+2
-3
lines changed- packages/module/src
- ResponsiveActions
- ResponsiveAction
2 files changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
0 commit comments