Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
fix(Flex): Forwards ref to children (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewmorris authored and kylealwyn committed Sep 10, 2019
1 parent 7692d7b commit c5e680b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Flex/Flex.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const BaseFlex = createComponent({

/** Quickly manage the layout, alignment, and sizing of grid columns, navigation, components, and more with a full suite of responsive flexbox utilities. For more complex implementations, custom CSS may be necessary.
*/
const Flex = props => <BaseFlex {...props} />;
const Flex = React.forwardRef((props, ref) => <BaseFlex {...props} ref={ref} />);

Flex.displayName = 'Flex';

Expand Down

0 comments on commit c5e680b

Please sign in to comment.