Skip to content

Commit a6571d3

Browse files
committed
Don't test refForwarding
1 parent d94635a commit a6571d3

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

packages/material-ui/src/Fade/Fade.test.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ describe('<Fade />', () => {
2424
describeConformance(<Fade {...defaultProps} />, () => ({
2525
classes: {},
2626
inheritComponent: 'Transition',
27-
refInstanceof: window.HTMLDivElement,
2827
mount,
29-
skip: ['componentProp'],
28+
skip: ['componentProp', 'refForwarding'],
3029
}));
3130

3231
describe('transition lifecycle', () => {

packages/material-ui/src/Grow/Grow.test.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ describe('<Grow />', () => {
2828
classes: {},
2929
inheritComponent: 'Transition',
3030
mount,
31-
refInstanceof: window.HTMLDivElement,
32-
skip: ['componentProp'],
31+
skip: ['componentProp', 'refForwarding'],
3332
}),
3433
);
3534

pages/api/fade.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ It uses [react-transition-group](https://github.com/reactjs/react-transition-gro
1919

2020
| Name | Type | Default | Description |
2121
|:-----|:-----|:--------|:------------|
22-
| <span class="prop-name">children</span> | <span class="prop-type">element</span> | | A single child content element. |
22+
| <span class="prop-name">children</span> | <span class="prop-type">element</span> | | A single child content element.<br>⚠️The component used as a child [must be able to hold a ref](/guides/composition/#children). |
2323
| <span class="prop-name">in</span> | <span class="prop-type">bool</span> | | If `true`, the component will transition in. |
2424
| <span class="prop-name">timeout</span> | <span class="prop-type">union:&nbsp;number&nbsp;&#124;<br>&nbsp;{ enter?: number, exit?: number }<br></span> | <span class="prop-default">{ enter: duration.enteringScreen, exit: duration.leavingScreen,}</span> | The duration for the transition, in milliseconds. You may specify a single timeout for all transitions, or individually with an object. |
2525

26-
The `ref` is forwarded to the root element.
26+
The component cannot hold a ref.
2727

2828
Any other properties supplied will be provided to the root element ([Transition](https://reactcommunity.org/react-transition-group/#Transition)).
2929

pages/api/grow.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ It uses [react-transition-group](https://github.com/reactjs/react-transition-gro
2020

2121
| Name | Type | Default | Description |
2222
|:-----|:-----|:--------|:------------|
23-
| <span class="prop-name">children</span> | <span class="prop-type">element</span> | | A single child content element. |
23+
| <span class="prop-name">children</span> | <span class="prop-type">element</span> | | A single child content element.<br>⚠️The component used as a child [must be able to hold a ref](/guides/composition/#children). |
2424
| <span class="prop-name">in</span> | <span class="prop-type">bool</span> | | If `true`, show the component; triggers the enter or exit animation. |
2525
| <span class="prop-name">timeout</span> | <span class="prop-type">union:&nbsp;number&nbsp;&#124;<br>&nbsp;{ enter?: number, exit?: number }&nbsp;&#124;<br>&nbsp;enum:&nbsp;'auto'<br><br></span> | <span class="prop-default">'auto'</span> | The duration for the transition, in milliseconds. You may specify a single timeout for all transitions, or individually with an object.<br>Set to 'auto' to automatically calculate transition time based on height. |
2626

27-
The `ref` is forwarded to the root element.
27+
The component cannot hold a ref.
2828

2929
Any other properties supplied will be provided to the root element ([Transition](https://reactcommunity.org/react-transition-group/#Transition)).
3030

0 commit comments

Comments
 (0)