Skip to content

Commit a7f8e59

Browse files
authored
Products tab: Check horizontal size class before selecting first product (#16158)
2 parents 10ec6fc + db6dfd3 commit a7f8e59

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

WooCommerce/Classes/ViewRelated/Products/ProductsSplitViewCoordinator.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,9 @@ private extension ProductsSplitViewCoordinator {
227227
guard let self else {
228228
return false
229229
}
230-
return selectedProduct == nil && !splitViewController.isCollapsed
230+
return selectedProduct == nil &&
231+
!splitViewController.isCollapsed &&
232+
splitViewController.traitCollection.horizontalSizeClass == .regular
231233
}
232234
.first()
233235
.sink { [weak self] selectedProduct, onDataReloaded in

0 commit comments

Comments
 (0)