We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 157d2ba commit b1556faCopy full SHA for b1556fa
src/sort-filter-bar/sort-filter-bar.ts
@@ -216,6 +216,9 @@ export class SortFilterBar
216
private disconnectResizeObserver(
217
resizeObserver: SharedResizeObserverInterface
218
) {
219
+ // return if element not defined
220
+ if (!this.sortSelectorContainer || !this.desktopSortContainer) return;
221
+
222
resizeObserver.removeObserver({
223
target: this.sortSelectorContainer,
224
handler: this,
@@ -229,6 +232,10 @@ export class SortFilterBar
229
232
230
233
private setupResizeObserver() {
231
234
if (!this.resizeObserver) return;
235
236
237
238
239
this.resizeObserver.addObserver({
240
241
0 commit comments