Fix defaultComponent bug

This commit is contained in:
Chi Vinh Le
2018-03-14 11:32:13 +01:00
parent ce70c9c925
commit 3d8fc116a7
@@ -105,7 +105,10 @@ const createHOC = ({
const { plugins } = this.context;
const slots = this.getSlots(props);
const sizes = this.getSizes(props, slots.length);
const defaultComponents = this.getSizes(props, slots.length);
const defaultComponents = this.getDefaultComponents(
props,
slots.length
);
const slotPassthrough = this.getPassthrough(props);
if (process.env.NODE_ENV !== 'production') {