Skip to content
This repository was archived by the owner on Aug 21, 2023. It is now read-only.

Blue - v1.8.3

Choose a tag to compare

@ItsJonQ ItsJonQ released this 17 Oct 17:32

Control components: Add innerRef prop

5157173

This update adds a new innerRef prop for control based components to
allow access to their respective DOM nodes.

innerRef is the prop name for this convention, established by several
libraries, especially the CSS-in-JS ones.

Example

<Button innerRef={node => this.buttonNode = node}>...</Button>

For integration reasons, I decided to keep the preference ref props, if
defined (like buttonRef or inputRef).

Tests have been added for innerRef checking, and docs have been
updated.