Skip to content

Commit ec285fb

Browse files
authored
refactor(Col)!: remove default span value in breakpoint object (react-bootstrap#6014)
BREAKING CHANGE: When using objects in `Col` breakpoint props, `span` is no longer `true` by default
1 parent 57be243 commit ec285fb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Col.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export function useCol({
137137
let order: ColOrder | undefined;
138138

139139
if (typeof propValue === 'object' && propValue != null) {
140-
({ span = true, offset, order } = propValue);
140+
({ span, offset, order } = propValue);
141141
} else {
142142
span = propValue;
143143
}

www/src/pages/migrating.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Below is a _rough_ account of the breaking API changes as well as the minimal ch
5858
### Col
5959

6060
- `ColOrder` is now maximum 5 instead of 12.
61+
- When using objects in breakpoint props, `span` is no longer `true` by default.
6162

6263
### Dropdown
6364
- dropdown dividers use `hr` by default instead of `div`.

0 commit comments

Comments
 (0)