Open agoransson opened 9 years ago
When placing refs within modal the inner refs are not registered. Consider the example below.
<Modal ref="modal"> <h2 ref="heading">A heading</h2> <MyCustomFormComponent ref="form" onSubmitted={this.onSubmitted} /> </Modal>
The modal reference is found, but any reference placed within are not found, i.e. the "heading" and "form" refs are not registered.
When placing refs within modal the inner refs are not registered. Consider the example below.
The modal reference is found, but any reference placed within are not found, i.e. the "heading" and "form" refs are not registered.