yuanyan / boron

A collection of dialog animations with React.js
https://yuanyan.github.io/boron
MIT License
1.48k stars 153 forks source link

Refs within modal are removed. #13

Open agoransson opened 9 years ago

agoransson commented 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.