|
@@ -6,6 +6,7 @@ export default class ContainerWrapper {
|
6
|
6
|
return class extends Component {
|
7
|
7
|
constructor(props) {
|
8
|
8
|
super(props);
|
|
9
|
+ this._saveContainerRef = this._saveContainerRef.bind(this);
|
9
|
10
|
this._assertId(props);
|
10
|
11
|
this._createState(props);
|
11
|
12
|
}
|
|
@@ -23,6 +24,10 @@ export default class ContainerWrapper {
|
23
|
24
|
};
|
24
|
25
|
}
|
25
|
26
|
|
|
27
|
+ _saveContainerRef(r) {
|
|
28
|
+ this.originalContainerRef = r;
|
|
29
|
+ }
|
|
30
|
+
|
26
|
31
|
componentWillMount() {
|
27
|
32
|
store.setRefForId(this.state.id, this);
|
28
|
33
|
}
|
|
@@ -52,7 +57,7 @@ export default class ContainerWrapper {
|
52
|
57
|
render() {
|
53
|
58
|
return (
|
54
|
59
|
<OriginalContainer
|
55
|
|
- ref={(r) => this.originalContainerRef = r}
|
|
60
|
+ ref={this._saveContainerRef}
|
56
|
61
|
{...this.state.allProps}
|
57
|
62
|
id={this.state.id}
|
58
|
63
|
key={this.state.id}
|