Skip to content

Commit 2a36601

Browse files
hosmelqeddywashere
authored andcommitted
fix(Col): support disabled width props (#283)
1 parent 7df67a2 commit 2a36601

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Col.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ const Col = (props) => {
5353
colWidths.forEach(colWidth => {
5454
const columnProp = props[colWidth];
5555

56+
delete attributes[colWidth];
57+
5658
if (!columnProp) {
5759
return;
5860
}
5961

6062
const isXs = colWidth === 'xs';
6163
let colClass;
6264

63-
delete attributes[colWidth];
64-
6565
if (isobject(columnProp)) {
6666
const colSizeInterfix = isXs ? '-' : `-${colWidth}-`;
6767
colClass = getColumnSizeClass(isXs, colWidth, columnProp.size);

0 commit comments

Comments
 (0)