@gitlab/ui 138.2.0 → 138.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -154,7 +154,8 @@ var script = {
|
|
|
154
154
|
},
|
|
155
155
|
data() {
|
|
156
156
|
return {
|
|
157
|
-
|
|
157
|
+
// Set on mount to be safe for SSR
|
|
158
|
+
breakpoint: null,
|
|
158
159
|
// If total pages count is below or equal to minTotalPagesToCollapse, collapsing is disabled
|
|
159
160
|
minTotalPagesToCollapse: 4
|
|
160
161
|
};
|
|
@@ -249,7 +250,8 @@ var script = {
|
|
|
249
250
|
return '#';
|
|
250
251
|
}
|
|
251
252
|
},
|
|
252
|
-
|
|
253
|
+
mounted() {
|
|
254
|
+
this.setBreakpoint();
|
|
253
255
|
this.resizeDebounced = debounce(this.setBreakpoint, resizeDebounceTime);
|
|
254
256
|
window.addEventListener('resize', this.resizeDebounced);
|
|
255
257
|
},
|