Skip to content

Commit e6052e0

Browse files
committed
fix for ColorPalette containerWidth
1 parent 9a199e3 commit e6052e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/colorPicker/ColorPalette.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ export default class ColorPalette extends PureBaseComponent {
128128
}
129129

130130
get containerWidth() {
131-
return this.props.containerWidth || Constants.screenWidth;
131+
const {containerWidth} = this.getThemeProps();
132+
return containerWidth || Constants.screenWidth;
132133
}
133134

134135
getUniqueColors = memoize(

0 commit comments

Comments
 (0)